You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Users of autocomplete systems have come to expect the following:
Hitting ESC should close the autocomplete.
Hitting TAB should select the first item if nothing is active. Hitting TAB if an item is active should do nothing.
It's easy to add this behavior outside the library, but the AlphaNum Conditions are too aggressive. We should add these Conditions to prevent re-renders for those keys. Here's my code to workaround the issue:
// autocomplete-js is very aggressive about handling keys. Even keys like// TAB and ESC cause a re-render, which conflicts with our handling of those// keys. Let's reach in there and turn off those keys.constconditions=this.autocomplete.KeyboardMappings.AlphaNum.Conditions;conditions.push({Is: 9,Not: true});conditions.push({Is: 27,Not: true});
The text was updated successfully, but these errors were encountered:
Users of autocomplete systems have come to expect the following:
It's easy to add this behavior outside the library, but the AlphaNum Conditions are too aggressive. We should add these Conditions to prevent re-renders for those keys. Here's my code to workaround the issue:
The text was updated successfully, but these errors were encountered: