You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems when passing a map like this [name: it.name] the 'it' used by other select options doesn't work, and there is no check for null to provide a correct message of what the error is.
I have found, by looking at the code that only this works, which is a little obscure: [name: 'name'], so for other options like optionValue (this works: optionValue="${{it.templateId +' (v'+ it.versionNumber +')'}}")
So since dataAttrs don't support using it.xxx we neither can compose values like we can for optionValue, which would be useful for certain cases.
Steps to Reproduce
Use the select tag including dataAttrs.
Expected Behaviour
Actual Behaviour
I tracked the issue in the code to this line https://github.com/grails/grails-gsp/blob/5.2.x/grails-plugin-gsp/src/main/groovy/org/grails/plugins/web/taglib/FormTagLib.groovy#L1122
It seems when passing a map like this [name: it.name] the 'it' used by other
select
options doesn't work, and there is no check for null to provide a correct message of what the error is.I have found, by looking at the code that only this works, which is a little obscure: [name: 'name'], so for other options like optionValue (this works:
optionValue="${{it.templateId +' (v'+ it.versionNumber +')'}}"
)So since dataAttrs don't support using it.xxx we neither can compose values like we can for optionValue, which would be useful for certain cases.
Environment Information
$ grails -version
| Grails Version: 5.3.2
| JVM Version: 11.0.10
Example Application
The text was updated successfully, but these errors were encountered: