Revert "fix(client): fix rerendering cause range bug (#2770)" (#2779)

This reverts commit a1ee2afabd.
This commit is contained in:
Junyi 2023-10-10 09:37:56 +08:00 committed by GitHub
parent 03133fc647
commit 08d4994305
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]);
}, [value, keyLabelMap]);
useEffect(() => {
const { current } = inputRef;