foundryvtt / foundryvtt

Public issue tracking and documentation for Foundry Virtual Tabletop - software connecting RPG gamers in a shared multiplayer environment with an intuitive interface and powerful API.
https://foundryvtt.com/
198 stars 10 forks source link

Using deprecated nameAttr option of selectOptions helper does not work for an array of choices #10872

Closed Fyorl closed 3 weeks ago

Fyorl commented 3 weeks ago

Originally reported by jasharen https://discord.com/channels/170995199584108546/1184176415139184731/1237557944090890310

ALL MODULES DISABLED? true OS, Hosting, Browser (if applicable): Windows, NodeJS, Chrome Short Description of bug: selectOptions with an Array of choices and the nameAttr argument do not work Simple steps to reproduce the bug: Create a selectOptions using nameAttr with an array for choices. Does not work using nameAttr, will work with deprecated valueAttr Screenshots and/or console errors: No errors, value of selectOptions is Undefined

Fyorl commented 3 weeks ago

Note that it is nameAttr that has been deprecated, not valueAttr, but I was able to verify that the deprecation path for nameAttr is not working in the case of an array of options.