David Kimura PRO said almost 2 years ago on Dynamic Select Forms with Hotwire :
Can you inspect the html in the browser to make sure that the data attribute got set?