Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing hideDropdown(), showDropdown(), toggleDropdown,

See original GitHub issue

Apologises if I’m misunderstanding something here, but I dont seem to be able to use the following functions on my select multiple:


They dont seem to be defined:

console.log(choices) screen shot 2017-07-19 at 13 32 10

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14

github_iconTop GitHub Comments

rasbencommented, Jul 19, 2017

…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 😃)

screen shot 2017-07-19 at 15 07 25

Thank you again!

jshjohnsoncommented, Jul 19, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found