Commit 7deb9c3
authored
fix(searchBox): handle BFCache browsers (#1212)
When the page is coming from BFCache
(https://developer.mozilla.org/en-US/docs/Working_with_BFCache)
then we force the input value to be the current query.
Otherwise, this happens:
- `<input>` autocomplete = off (default)
- search $query
- navigate away
- use back button
- input query is empty (because `<input>` autocomplete = off)
Firefox and Safari are using BFCache for instant back button1 parent 86872eb commit 7deb9c3
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
241 | 254 | | |
242 | 255 | | |
243 | 256 | | |
| |||
0 commit comments