Custom `targetAttributeForScope` breaks target lifecycle callbacks
Author: koenkivitsCreated Jan 21, 2025Updated Jan 21, 2025
When using a custom targetAttributeForScope callback, target (dis)connected callbacks no longer work. This seems to be because TargetObserver hardcodes the default attribute format:
All target properties on the controller ([name]Target, has[Name]Target, etc) do work as expected.
Source: hotwired/stimulus