How do i use tom-select with stimulus and hotwire?
I'm using tom-select to either select from the options or create record in the modal. The problem happens when the form submits successfully and that newly created record is now have been selected in the dropdown.
Hotwire easily handles the stuff of showing validation errors on the modal but i'm not sure how to update the dropdown options using stimulus js.
I have pushed my implementation here - https://github.com/ahmad19/tomselect-stimulus-hotwire-demo