From 179bf93c9d1faa2c6ffa0e99616edc31837d8002 Mon Sep 17 00:00:00 2001 From: Scott Murphy Heiberg Date: Sun, 12 Jan 2025 13:58:31 -0800 Subject: [PATCH] Use unique name for widget propagation --- .../plugins/web/taglib/FormTagLib.groovy | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/grails-plugin-gsp/src/main/groovy/org/grails/plugins/web/taglib/FormTagLib.groovy b/grails-plugin-gsp/src/main/groovy/org/grails/plugins/web/taglib/FormTagLib.groovy index 532183b9dc..f4bc04dee6 100644 --- a/grails-plugin-gsp/src/main/groovy/org/grails/plugins/web/taglib/FormTagLib.groovy +++ b/grails-plugin-gsp/src/main/groovy/org/grails/plugins/web/taglib/FormTagLib.groovy @@ -677,7 +677,7 @@ class FormTagLib implements ApplicationContextAware, InitializingBean, TagLibrar * @attr disabled Makes the resulting inputs and selects to be disabled. Is treated as a Groovy Truth. * @attr readonly Makes the resulting inputs and selects to be made read only. Is treated as a Groovy Truth. * @attr locale The locale to use for display formatting. Defaults to the current request locale and then the system default locale if not specified. - * @attr selectClass css class added to each select tag + * @attr selectDateClass css class added to each select tag */ Closure datePicker = { attrs -> def out = out // let x = x ? @@ -798,8 +798,8 @@ class FormTagLib implements ApplicationContextAware, InitializingBean, TagLibrar if (attrs.readonly) { out << ' readonly="readonly"' } - if (attrs.selectClass) { - out << ' class="'+attrs.selectClass+'"' + if (attrs.selectDateClass) { + out << ' class="'+attrs.selectDateClass+'"' } out << '>' @@ -825,8 +825,8 @@ class FormTagLib implements ApplicationContextAware, InitializingBean, TagLibrar if (attrs.readonly) { out << ' readonly="readonly"' } - if (attrs.selectClass) { - out << ' class="'+attrs.selectClass+'"' + if (attrs.selectDateClass) { + out << ' class="'+attrs.selectDateClass+'"' } out << '>' @@ -854,8 +854,8 @@ class FormTagLib implements ApplicationContextAware, InitializingBean, TagLibrar if (attrs.readonly) { out << ' readonly="readonly"' } - if (attrs.selectClass) { - out << ' class="'+attrs.selectClass+'"' + if (attrs.selectDateClass) { + out << ' class="'+attrs.selectDateClass+'"' } out << '>' @@ -881,8 +881,8 @@ class FormTagLib implements ApplicationContextAware, InitializingBean, TagLibrar if (attrs.readonly) { out << ' readonly="readonly"' } - if (attrs.selectClass) { - out << ' class="'+attrs.selectClass+'"' + if (attrs.selectDateClass) { + out << ' class="'+attrs.selectDateClass+'"' } out << '>' @@ -915,8 +915,8 @@ class FormTagLib implements ApplicationContextAware, InitializingBean, TagLibrar if (attrs.readonly) { out << 'readonly="readonly"' } - if (attrs.selectClass) { - out << ' class="'+attrs.selectClass+'"' + if (attrs.selectDateClass) { + out << ' class="'+attrs.selectDateClass+'"' } out << '>'