Commit e63ce2d
committed
fix: restore search by keeping hidden search-button element in DOM
The just-the-docs.js initNav() calls jtd.addEvent on the #search-button
element unconditionally. When the element was removed (to avoid overlap
with the OSA chat widget), jtd.addEvent(null, ...) threw an error,
preventing initSearch() from ever executing. The search index was never
built, leaving the header search input non-functional.
Restore the button with display:none so the JS doesn't crash while
keeping it invisible to avoid overlap with the chat widget.1 parent b176eda commit e63ce2d
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
192 | 198 | | |
193 | 199 | | |
194 | 200 | | |
| |||
0 commit comments