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