This repository has been archived by the owner on Jun 11, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docsearch): allow a single instance to open
If a website uses two DocSearch instances (e.g., one for mobile and one for desktop), it resulted in a double modal being show when hitting `Ctrl + K`. This is fixed by checking that the active DocSearch CSS class is not applied on `body` before opening the modal.
- Loading branch information