[wp-trac] [WordPress Trac] #38211: Interference of AJAX search with input field auto-complete
WordPress Trac
noreply at wordpress.org
Wed Aug 28 15:35:30 UTC 2024
#38211: Interference of AJAX search with input field auto-complete
---------------------------------------------+-----------------------------
Reporter: armandsdz | Owner:
| adamsilverstein
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 6.7
Component: Plugins | Version: 4.6
Severity: normal | Resolution:
Keywords: uniform-search has-patch commit | Focuses: ui,
| accessibility
---------------------------------------------+-----------------------------
Changes (by joedolson):
* keywords: ux-feedback uniform-search has-patch needs-testing => uniform-
search has-patch commit
Comment:
Updated patch updates the @since reference and changes the comparison
logic for `previousSearchStringLength` to `>` instead of `>=` so that a
transition from 2 characters to 1 character does not trigger the AJAX
query.
Tested; works as expected:
1) No autocomplete feedback.
2) Query only fires when there are two or more characters in the query,
whether characters are added or removed.
Marking for commit.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38211#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list