fix(client): fix rerendering cause range bug (#2770)

This commit is contained in:
Junyi 2023-10-09 16:56:37 +08:00 committed by GitHub
parent cc7ec2ffd6
commit a1ee2afabd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -213,7 +213,7 @@ export function TextArea(props) {
if (!changed) {
setRange([-1, 0, -1, 0]);
}
}, [value, keyLabelMap]);
}, [value]);
useEffect(() => {
const { current } = inputRef;