Missing hideDropdown(), showDropdown(), toggleDropdown,
See original GitHub issueApologises if I’m misunderstanding something here, but I dont seem to be able to use the following functions on my select multiple
:
choices.hideDropdown()
choices.showDropdown()
choices.toggleDropdown()
They dont seem to be defined:
console.log(choices)
Issue Analytics
- State:
- Created 6 years ago
- Comments:14
Top Results From Across the Web
Hide/Show/Toggle not working · Issue #237 · Choices-js ...
It does work if you wrap the toggleDropdown() in a setTimeout function. Same for hideDropdown() and showDropdown() .
Read more >AutoCompleteTextView show suggestions when no text entered
The showDropDown() seem to work well on seting onClickListener,but subclass thing is not working untill the user enter a letter and comes dels ......
Read more >@laomao800/vue-select-wrapper - npm package | Snyk
Looks like @laomao800/vue-select-wrapper is missing a security policy. ... hideDropdown(), Hide the dropdown. toggleDropdown(), Toggle the dropdown.
Read more >Dropdowns - Bootstrap
Via data attributes or JavaScript, the dropdown plugin toggles hidden content (dropdown menus) by toggling the .show class on the parent list item....
Read more >Jquery Show Drop Down Menu On Hover
Responsive Dropdown Menu With jQuery And CSS Flexbox - Fluid Menu. hover ( function () { var $this = $ (this); //$this. Here...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
…I’m the biggest idiot in the world…
I was binding hideDropdown() to be when you clicked on the choices element… but of course that is bound to toggle by the core code…
derp… I fixed it by making a psuedo element
Sorry for the roundabout discussion 😃
Btw i’m really impressed with this module - it’s so well rounded and awesome! Here’s my final result (with the offending close button 😃)
Thank you again!
Haha. It may have done nothing because the dropdown was already closed?
Just because you can’t see a method inside the instance object, doesn’t mean it doesn’t exist - JavaScript will traverse up the Choices prototype to find it.
If you look at the source of the demo page, you can see how these methods are being called.
There is also more info here.