[wp-trac] [WordPress Trac] #42348: Themes search: reintroduce the debounced search
WordPress Trac
noreply at wordpress.org
Fri Oct 27 03:21:52 UTC 2017
#42348: Themes search: reintroduce the debounced search
--------------------------+--------------------------------------------
Reporter: afercia | Owner: westonruter
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 4.9
Component: Customize | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: ui, accessibility, javascript
--------------------------+--------------------------------------------
Changes (by westonruter):
* keywords: needs-patch => has-patch
Comment:
I found an approach that ensures we get debouncing while also ensuring the
initial search from the query param gets immediately called: just defer
wrapping `doSearch` with `_.debounce()` until after
`Backbone.history.start()` has been called. See [attachment:42348.3.diff].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42348#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list