All threads / How to use stimulus-autocomplete events when triggered

Ask A Question


You’re not receiving notifications from this thread.

How to use stimulus-autocomplete events when triggered

Alex Deering asked in General

Ive got the stimulus-autocomplete controller installed and working, but Im still learning how to work with stimulus. The documentation for the controller says there are events that get fired off and looking to hook into the autocomplete.change event but it doesnt have any examples.

I would like to display a message based on what is selected

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 52,887+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2021 GoRails, LLC. All rights reserved.