vijeetgv opened a new issue, #14250:
URL: https://github.com/apache/grails-core/issues/14250

   When we configure the noSelection parameter, it gets ignored by the tag when 
setting required to false. It's basically this line of code (that's everywhere 
in the FormFieldsTagLib.groovy):
   
   `if (!model.required) attrs.noSelection = ["": ""]`
   
   I, for one, see no functional connection between a value not being required, 
and the "noSelection" being ignored. The use case where you want to provide a 
"noSelection" param, in a non-required field, seems quite logical to me.
   
   On the other hand, if the field is required, then this makes sense to 
override this to null. The `["": ""]` value actually ends up showing a blank 
option in select box, which again is something not so desirable. I'd request 
this overriding be removed entirely & let users have the control what they want 
to show there.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to