Skip to content

Commit

Permalink
feat(TagPicker): fix text flicker when entering (#3758)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonguo committed Apr 26, 2024
1 parent 930a321 commit f7058d1
Show file tree
Hide file tree
Showing 13 changed files with 266 additions and 168 deletions.
4 changes: 2 additions & 2 deletions src/InputPicker/InputAutosize.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ const useInputWidth = (

let width: number;
if (placeholder && !value && placeholderRef.current) {
width = Math.max(sizerRef.current.scrollWidth, placeholderRef.current.scrollWidth) + 2;
width = Math.max(sizerRef.current.scrollWidth, placeholderRef.current.scrollWidth) + 10;
} else {
width = sizerRef.current.scrollWidth + 2;
width = sizerRef.current.scrollWidth + 10;
}

if (width < minWidth) {
Expand Down

0 comments on commit f7058d1

Please sign in to comment.