Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #38211, comment 18


Ignore:
Timestamp:
01/09/2017 07:40:27 PM (8 years ago)
Author:
adamsilverstein
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #38211, comment 18

    initial v1  
    11[attachment:38211.3.diff] Is an alternate approach that limits searching until you type at least 2 characters, and dynamically removes the autocomplete attribute before the ajax search kicks in. We use a similar approach in `nav-menus.js`.
    22
    3 This gives you one character to type in and see/select autocomplete results, once you hit 2 characters, the ajax search kicks in and autocomplete has been disabled for the field.  You can override the threshold by setting wp.updates.searchMinCharacters after the JS loads.
     3This gives you one character to type in and see/select autocomplete results, once you hit 2 characters, the ajax search kicks in and autocomplete has been disabled for the field.  You can override the threshold by setting `wp.updates.searchMinCharacters` after the JS loads.
    44
    55@mklusak & @finalwebsites & @armandsdz can you test this out and see what you think?