Closed dylandamsma closed 7 months ago
Hey @dylandamsma sorry you're having trouble with the library.
Just tried this on a fresh rails app and it seems to work for me. Is it possible there's a version mismatch between your npm and gem hotwire_combobox libraries? They should be the same version. Maybe you updated one and not the other?
If that isn't the case, could you please provide which version of the gem you're on (check Gemfile.lock), which version of the JS package you're on (check yarn.lock or package.lock), and/or an example application where this is happening? Would also be curious to see the implementation of location_options
Thanks! Closing for now but do let me know if it's not a version mismatch and I'll reopen.
Apologies, I had removed it from my Gemfile previously -- but the Gemfile.lock still kept it on old version
No worries! Glad we found the problem 👍
Describe the bug Clicking on a value does not close the combobox and invokes a JS error
To Reproduce Steps to reproduce the behavior:
/javascript/controllers/application.js
form
Expected behavior Combobox to select value and close
Additional context Combobox stays open after clicking value: