Skip to content
Snippets Groups Projects
Commit 6622261e authored by chris's avatar chris
Browse files

fix

parent e4010780
No related branches found
No related tags found
1 merge request!190Find and replace
This commit is part of merge request !190. Comments created here will be created in the context of that merge request.
......@@ -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 = () => {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment