stimulus_reflex icon indicating copy to clipboard operation
stimulus_reflex copied to clipboard

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

Open cmer opened this issue 1 year ago • 3 comments
trafficstars

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

  • Gem: 3.5.0.rc3
  • Node package: 3.5.0.rc3

Browser

  • Browser: Any

cmer avatar Dec 30 '23 17:12 cmer

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 avatar Jan 04 '24 00:01 marcoroth

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

marcoroth avatar Jan 04 '24 01:01 marcoroth

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

cmer avatar Jan 04 '24 01:01 cmer

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!

marcoroth avatar Mar 12 '24 06:03 marcoroth