We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 093105b commit 6bff04fCopy full SHA for 6bff04f
src/grails/grails-app/taglib/FormTagLib.groovy
@@ -382,7 +382,7 @@ class FormTagLib {
382
def renderNoSelectionOption = { noSelectionKey, noSelectionValue, value ->
383
// If a label for the '--Please choose--' first item is supplied, write it out
384
out << '<option value="' << (noSelectionKey == null ? "" : noSelectionKey) << '"'
385
- if(noSelectionKey == value) {
+ if(noSelectionKey.equals(value)) {
386
out << ' selected="selected" '
387
}
388
out << '>' << noSelectionValue.encodeAsHTML() << '</option>'
0 commit comments