1
0
Fork 0
Commit graph

11 commits

Author SHA1 Message Date
François Chalifour
038d448b65 chore: move docsearch-react to packages 2020-09-01 11:36:46 +02:00
François Chalifour
928b9ca7b8 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.
2020-08-21 14:30:58 +02:00
François Chalifour
159ef8ba89 feat(docsearch): export DocSearch types 2020-08-07 11:29:51 +02:00
François Chalifour
45cf5c325b fix(docsearch): don't open modal on / when editing text 2020-08-04 10:04:00 +02:00
François Chalifour
81092060d5 feat(docsearch): support initialQuery
Closes #51
2020-07-20 15:36:56 +02:00
François Chalifour
ae3c713ed4 refactor: remove unused API 2020-07-08 14:37:59 +02:00
François Chalifour
cf84a256a4 fix(docsearch): support initial query 2020-07-08 14:37:59 +02:00
François Chalifour
92e2565d45 feat(docsearch): support keyboard on focus on default integration 2020-07-07 15:04:57 +02:00
François Chalifour
929b1c6a72 feat(docsearch): support typing query when search button is focused (#54) 2020-07-07 09:54:42 +02:00
François Chalifour
5725023ae7 feat(docsearch): add / keyboard shortcut 2020-07-01 15:00:46 +02:00
François Chalifour
adadacd531 feat(docsearch): add useDocSearchKeyboardEvents API 2020-05-14 12:27:28 +02:00