Skip to content
Snippets Groups Projects

Find and replace

Merged Christos requested to merge find-and-replace into master
3 files
+ 10
56
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -105,7 +105,7 @@ const FindComponent = ({ close, expand, setPreviousSearcValue }) => {
const searchDocument = () => {
setCounterText('0 of 0');
console.log('search');
const results = helpers.getMatchesByView(
view,
searchValue,
@@ -123,6 +123,10 @@ const FindComponent = ({ close, expand, setPreviousSearcValue }) => {
close();
};
if (searchRef.current !== document.activeElement) {
console.log('not input');
}
const showExpanded = () => {
expand();
setPreviousSearcValue(searchValue);