Skip to content
Snippets Groups Projects

Find and replace

Merged Christos requested to merge find-and-replace into master
1 file
+ 5
4
Compare changes
  • Side-by-side
  • Inline
  • 6622261e
    fix · 6622261e
    chris authored
@@ -117,10 +117,11 @@ const FindComponent = ({ close, expand, setPreviousSearcValue }) => {
if (counter > 0) setCounterText(`1 of ${counter}`);
each(view, (singleView, viewId) => {
singleView.dispatch(singleView.state.tr);
});
// if (searchRef.current === document.activeElement)
if (searchRef.current === document.activeElement) {
each(view, (singleView, viewId) => {
singleView.dispatch(singleView.state.tr);
});
}
};
const closeFind = () => {