Commit 61cf9be
vvo
fix(searchBox): do not update the input when focused
When we have an external update:
- search.helper.setQuery
- debounce option used on searchBox (resulting in an "external"
update: search happens after some time)
Then if the input is focused (user typing), we should not try to
update it. It will always result in a bad behavior.
Thus, it means we do not handle use cases like "When the user is
focused, I want to programmatically update is query". If you want to
do that, you would have to blur the input, update, focus.
But that's an edge case and bad UX I believe.
fixes #9441 parent e83db4a commit 61cf9be
File tree
3 files changed
+16
-2
lines changed- dev
- src/widgets/search-box
- __tests__
3 files changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| 360 | + | |
360 | 361 | | |
361 | 362 | | |
362 | 363 | | |
363 | 364 | | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
364 | 375 | | |
365 | 376 | | |
366 | 377 | | |
| |||
440 | 451 | | |
441 | 452 | | |
442 | 453 | | |
443 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
200 | 205 | | |
201 | 206 | | |
202 | 207 | | |
| |||
0 commit comments