diff --git a/modules/core/src/main/resources/views/htmltags/form/radio.html b/modules/core/src/main/resources/views/htmltags/form/radio.html index a0ac87b7..8a9f31f8 100644 --- a/modules/core/src/main/resources/views/htmltags/form/radio.html +++ b/modules/core/src/main/resources/views/htmltags/form/radio.html @@ -59,8 +59,13 @@ var body = { var checked, title; for (var item in p.items){ checked = (@ObjectUtils.toString(p.value) == item[p.itemValue] ? ' checked' : ''); - if (type.name(item) == 'DictData' && isNotBlank(item['description'])){ - title = ' title="' + item['description'] + '"'; + if (type.name(item) == 'DictData'){ + if (!item['isRoot']) { + continue; + } + if (isNotBlank(item['description'])){ + title = ' title="' + item['description'] + '"'; + } } %> ${item[p.itemLabel]}<% diff --git a/modules/core/src/main/resources/views/htmltags/form/select.html b/modules/core/src/main/resources/views/htmltags/form/select.html index b4dc0769..6f0e469c 100644 --- a/modules/core/src/main/resources/views/htmltags/form/select.html +++ b/modules/core/src/main/resources/views/htmltags/form/select.html @@ -94,6 +94,9 @@ var body = { attr = attr + (@ObjectUtils.toString(p.value) == iv ? ' selected' : ''); } if (type.name(item) == 'DictData'){ + if (!item['isRoot']) { + continue; + } if (isNotBlank(item['description'])){ attr = attr + ' title="' + item['description'] + '"'; }