Using search(...)
throws SearchDialogIsOpen
when the advanced search dialog is open
#4922
Labels
Area: Word
Issue related to Word add-ins
Needs: attention 👋
Waiting on Microsoft to provide feedback
Provide required information needed to triage your issue
Using the
search(...)
function when a user has the advanced search dialog open throws aSearchDialogIsOpen
error.Your Environment
Expected behavior
Using
search(...)
should return results regardless of whether the user has the advanced search dialog open.Current behavior
Using the
search(...)
function when a user has the advanced search dialog open throws aSearchDialogIsOpen
error.Steps to reproduce
SearchDialogIsOpen
errorContext
The
search(...)
function is critical to our app. We use it to find and then track locations in the document, which we then annotate, suggest changes to, scroll to, etc.. Without it we have no way to get those locations.As a result of this issue, we have to show an error message in our app when a user has the advanced search dialog open and we try to do almost anything. The user then has to close the search dialog in order to perform actions from our app.
I'm guessing the presence of a specific error for this case means it's a known issue on the OfficeJS side, but I'm opening this issue because
search(...)
is foundational to so many apps (I'm sure my use cases aren't unusual). Would it be possible to support API searches even when the advanced search dialog is open?The text was updated successfully, but these errors were encountered: