When attempting to run a Paragraph.search an exception is raised if the Find, Replace, or Goto window is open.
GeneralException: GeneralException at Anonymous function (https://appsforoffice.microsoft.com/lib/1/hosted/word-win32-16.01.js:21:202747) at yi (https://appsforoffice.microsoft.com/lib/1/hosted/word-win32-16.01.js:21:235283) at st (https://appsforoffice.microsoft.com/lib/1/hosted/word-win32-16.01.js:21:235370) at d (https://appsforoffice.microsoft.com/lib/1/hosted/word-win32-16.01.js:21:235190) at c (https://appsforoffice.microsoft.com/lib/1/hosted/word-win32-16.01.js:21:233776)
ranges = paragraph.search(text, { matchCase: !caseInsensitive, ignoreSpace: true});
Any ideas? If this is not workable it'd be nice to at least get a better exception so we can tell a user how to fix it (close the modal in order to navigate).