Skip to content

Commit

Permalink
fix: 🐛 autoWidth应该由preInput同步至input
Browse files Browse the repository at this point in the history
  • Loading branch information
Cat1007 committed Oct 24, 2024
1 parent d4445b3 commit 9c80beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input/useInputWidth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function useInputWidth(
inputRef.value.style.width = `${width || 0}px`;
};

useResizeObserver(inputRef, () => {
useResizeObserver(inputPreRef, () => {
if (autoWidth.value) {
observerTimer.value = setTimeout(() => {
updateInputWidth();
Expand Down

0 comments on commit 9c80beb

Please sign in to comment.