Skip to content

Commit

Permalink
fix(comp:textarea): textarea autoRows max not working (#1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
sallerli1 committed Sep 13, 2022
1 parent 5eb8553 commit 367e0bc
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions packages/components/textarea/src/composables/useAutoRows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,20 @@ export function useAutoRows(
},
{ immediate: true },
),
watch(minRows, () => {
setMinHeight()
}),
watch(maxRows, () => {
setMaxHeight()
}),
watch(
minRows,
() => {
setMinHeight()
},
{ immediate: true },
),
watch(
maxRows,
() => {
setMaxHeight()
},
{ immediate: true },
),
]
const { stop: stopResizeObserver } = useResizeObserver(textareaRef, onResize)
stopWatch = () => {
Expand Down

0 comments on commit 367e0bc

Please sign in to comment.