You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, as the element appears, it connects the stimulus controller and converts the input element to TomSelect. Somehow, this focuses the element and pops up a dropdown with all the values.
Do you think I can prevent this so that the first element in the form stays focused?
This is how it looks on page load. For this scenario of editing a post, it isn't a big deal, but it annoys me when creating a new post.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I use tom-select in a Ruby on Rails application with a Stimulus controller to provide some data to tom-select.
So, as the element appears, it connects the stimulus controller and converts the input element to TomSelect. Somehow, this focuses the element and pops up a dropdown with all the values.
Do you think I can prevent this so that the first element in the form stays focused?
This is how it looks on page load. For this scenario of editing a post, it isn't a big deal, but it annoys me when creating a new post.
Beta Was this translation helpful? Give feedback.
All reactions