-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search: doesn't open after closing by clicking outside #169
Comments
I suppose that the action "clicking outside the modal" (at https://github.com/readthedocs/readthedocs-client/blob/6ecc7525c3ce085e69ae515fa6c592011633396c/src/search.js#L113) should trigger the event Another alternative could be a way to globally check if the |
I did something similar in #247 if you want to have a related example for this. |
Those are both valid solutions. However I'm wondering if we even need the requirement that the same hotkey both opens AND closes the modal? Since we already use Escape to close the modal, do we need to close it with |
@zanderle yeah, we don't need to use the same key to open and close. |
Closes #169 Closes #172 --------- Co-authored-by: Manuel Kaufmann <[email protected]>
Steps to reproduce:
/
to open the search modal/
againThis is because the state saved inside the
hotkeys.js
file is not updated when clicking outside.The text was updated successfully, but these errors were encountered: