fix: Fixed issue where opening a Super note would change its modified date (skip e2e)

This commit is contained in:
Aman Harwara
2023-01-16 23:20:59 +05:30
parent 2f07f7a3d1
commit 392335899a

View File

@@ -27,12 +27,6 @@ export const SearchPlugin = () => {
const isCaseSensitiveRef = useStateRef(isCaseSensitive)
const resultsRef = useStateRef(results)
useEffect(() => {
if (!isSearchActive) {
editor.focus()
}
}, [editor, isSearchActive])
useEffect(() => {
const isFocusInEditor = () => {
if (!document.activeElement || !document.activeElement.closest('.blocks-editor')) {
@@ -51,6 +45,7 @@ export const SearchPlugin = () => {
event.preventDefault()
event.stopPropagation()
dispatch({ type: 'toggle-search' })
editor.focus()
},
},
{