Skip to content

Commit

Permalink
🐛 fix: 特定の条件下で textareaAutosizeRef.value?.autosizeUpdateTextarea() が発…
Browse files Browse the repository at this point in the history
…火していなかった問題を修正
  • Loading branch information
reiroop committed Feb 4, 2025
1 parent 13a0424 commit 767dd24
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,9 @@ watch(value, updateShowIsInputTextareaExpandButtonVisibility, {
immediate: true
})

Check warning on line 184 in src/components/Main/MainView/MessageInput/MessageInputTextArea.vue

View check run for this annotation

Codecov / codecov/patch

src/components/Main/MainView/MessageInput/MessageInputTextArea.vue#L182-L184

Added lines #L182 - L184 were not covered by tests
watch(
textAreaAutoSizeMaxHeight,
textareaAutosizeRef.value?.autosizeUpdateTextarea ?? (() => null)
)
watch(textAreaAutoSizeMaxHeight, () => {
textareaAutosizeRef.value?.autosizeUpdateTextarea()
})

Check warning on line 188 in src/components/Main/MainView/MessageInput/MessageInputTextArea.vue

View check run for this annotation

Codecov / codecov/patch

src/components/Main/MainView/MessageInput/MessageInputTextArea.vue#L186-L188

Added lines #L186 - L188 were not covered by tests
</script>

<style lang="scss" module>
Expand Down

0 comments on commit 767dd24

Please sign in to comment.