fix(client): fix rerendering cause range bug (#2770)
This commit is contained in:
parent
cc7ec2ffd6
commit
a1ee2afabd
@ -213,7 +213,7 @@ export function TextArea(props) {
|
||||
if (!changed) {
|
||||
setRange([-1, 0, -1, 0]);
|
||||
}
|
||||
}, [value, keyLabelMap]);
|
||||
}, [value]);
|
||||
|
||||
useEffect(() => {
|
||||
const { current } = inputRef;
|
||||
|
Loading…
Reference in New Issue
Block a user