stimulusreflex / stimulus_reflex

Build reactive applications with the Rails tooling you already know and love.
https://docs.stimulusreflex.com
MIT License
2.29k stars 176 forks source link

Reflex not triggered when a Stimulus controller is also attached to a field #678

Closed cmer closed 8 months ago

cmer commented 11 months ago

Bug Report

Describe the bug

Reflexes are not triggered when any other Stimulus controller is attached to an input field.

To Reproduce

Attaching a Stimulus controller to a text field prevent reflexes from running.

Expected behavior

The reflex should get triggered in both cases.

Screenshots or reproduction

See: https://github.com/cmer/stimulus-reflex-bug-repro

And video demo: https://share.cleanshot.com/7sz67SPmk8sP8PGtL6xJ

Versions

StimulusReflex

Browser

marcoroth commented 10 months ago

Thanks for reporting this and for providing a repro @cmer. I was able to reproduce it in the test-suite and I'm currently looking into the best way to fix it! Thanks!

marcoroth commented 10 months ago

This should be resolved via https://github.com/stimulusreflex/stimulus_reflex/pull/670

cmer commented 10 months ago

Thank you SO MUCH! Awesome!!! Can't wait to give it a shot. You have a typo, btw. Left a comment.

marcoroth commented 8 months ago

This should be resolved with the release of v3.5.0.rc4. I'm going to close this issue, but please feel free to re-open if you are still seeing something unexpected!