📘 The easiest way to add search to your documentation.
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. |
||
|---|---|---|
| src | ||
| style | ||
| babel.config.js | ||
| button.js | ||
| modal.js | ||
| package.json | ||
| rollup.config.js | ||
| tsconfig.declaration.json | ||
| tsconfig.json | ||