Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add to handbook doc: ability to override data- attributes for controller, target, action #479

Merged

Conversation

lsparlin
Copy link
Contributor

Documentation Changes

I recently encountered an issue where I added Stimulus to a client project and I quickly discovered the data-action attribute was already being listened for and conflicting with the stimulus event expectations. Unable to remove that javascript I read some code and learned how to override these attributes.

To help others who may encounter similar conflicts I'd like to propose adding this process to the Stimulus handbook.

Thanks for your consideration.

@dhh dhh merged commit d97f891 into hotwired:main Oct 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants