David Kimura PRO said almost 2 years ago on Dynamic Select Forms with Hotwire :
Ah... I think I see the problem. In your code, you're closing the div before the form select for the secondary target. So, the secondary target is NOT part of the stimulus controller.