From d8761ed7f025769458fcd3cb679facc3bf90551d Mon Sep 17 00:00:00 2001 From: Yuanyuan Zhao Date: Fri, 1 Jul 2022 14:46:02 +0800 Subject: [PATCH] config_tools: hide required checkbox's & drop-down box label Required fields with a checkbox or drop-down box will potentially cause confusion. So hide the label when display them. Tracked-On: #7864 Signed-off-by: Yuanyuan Zhao --- .../vue3/vue3-core/src/components/Widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-core/src/components/Widget.js b/misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-core/src/components/Widget.js index 18f9935d6..8caf230ab 100644 --- a/misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-core/src/components/Widget.js +++ b/misc/config_tools/configurator/packages/vue-json-schema-form/vue3/vue3-core/src/components/Widget.js @@ -291,7 +291,7 @@ export default { label: () => h('span', { class: { genFormLabel: true, - genFormItemRequired: props.required, + genFormItemRequired: props.required && props.schema['ui:widget'] !== 'b-form-checkbox' && !props.uiProps.enumOptions, }, }, [ ...miniDescriptionVNode ? [miniDescriptionVNode] : [],