Okay, as I wrote this all out I think I’ve figured it out.
Because of the delayed call with setInterval
, hideAttachments
gets called outside of the stimulus controller as vanilla JS, so has no reference to the Target.
Okay, as I wrote this all out I think I’ve figured it out.
Because of the delayed call with setInterval
, hideAttachments
gets called outside of the stimulus controller as vanilla JS, so has no reference to the Target.