fix: Allow removing title via API

fix: Empty document title continously autofocuses
closes #3108
This commit is contained in:
Tom Moor
2022-02-19 09:10:06 -08:00
parent 34c5b60656
commit 64d4462412
2 changed files with 2 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ const ContentEditable = React.forwardRef(
if (autoFocus) {
ref.current?.focus();
}
});
}, [autoFocus, ref]);
React.useEffect(() => {
if (value !== ref.current?.innerText) {