Comments (1)
If anyone needs this in the future, I have done like this:
select.on('chosen:showing_dropdown', function (e, cfg) {
if(cfg.chosen.search_field.val() == '') {
cfg.chosen.results_hide();
}
cfg.chosen.search_field.off('keyup.chosen.checkshow');
cfg.chosen.search_field.on('keyup.chosen.checkshow', (event) => {
if(cfg.chosen.search_field.val() == '') {
cfg.chosen.results_hide();
} else if(!cfg.chosen.results_showing) {
cfg.chosen.results_show();
}
});
});
from chosen.
Related Issues (20)
- Chrome Update 105.0.5195.102 seems to have broken chosen
- Chosen Widget not recognizing Macron characters for Maori words so unable to search for Nga and Ngā HOT 1
- Broken focus after upgrading to jQuery 3.6.0 HOT 1
- dynamically remove or empty the 2nd select element selected options
- Android Chrome - no search bar / placeholder
- HTML in options
- Deprecation? HOT 2
- SEARCH BUG: Number search does not return obvious correct value. HOT 1
- Unable to preventDefault inside passive event listener invocation. HOT 1
- Menu get truncated if the dropdown at the end of the page
- Sponsor looking for a JS developer / Multi-keyword search
- Content Security Policy HOT 1
- Please set this project as Archived if it is not maintained HOT 2
- Unable to Edit or Modify a Copied Page Element in the Plugin
- Null Option is being showed as $nbsp;
- Thank you
- multiple dropdown does not work in H5
- Max selection doesn't work
- jQuery Type error HOT 1
- NPM not in sync
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chosen.