Let ... in ... block is working
This commit is contained in:
parent
f09261df93
commit
897824e07d
10 changed files with 28 additions and 24 deletions
|
|
@ -51,6 +51,6 @@ export function focusPrevElement() {
|
|||
|
||||
export const autoInputWidth = (inputRef: React.RefObject<HTMLInputElement| null>, text) => {
|
||||
if (inputRef.current) {
|
||||
inputRef.current.style.width = `${text.length === 0 ? 140 : (text.length*8.7)}px`;
|
||||
inputRef.current.style.width = `${text.length === 0 ? 150 : (text.length*8.7)}px`;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue