Apologies if this has been asked before, but I didn’t see it if so.
I have an
input_controller that does various things to various form inputs throughout our app. However, I’m using this controller on several different pages, and as such, not all of my targets (which happen to be inputs) are going to be present on every page, so I’m seeing the “Missing target element” error in the console.
To me this would seem to imply that the controller expects all of the defined targets to be present when it connects? I hope this is not the case, as that would seem to go against the inherent “generalization” goal of stimulus controllers. Anyone have any suggestions?
Loving stimulus btw. Its been a real joy to work with so far!