diff --git a/scss/components/form/_nested-select.scss b/scss/components/form/_nested-select.scss index 155f311f..23be52a2 100644 --- a/scss/components/form/_nested-select.scss +++ b/scss/components/form/_nested-select.scss @@ -130,7 +130,7 @@ cursor: pointer; display: flex; - > label { + > .#{$ns}NestedSelect-optionLabel { flex: 1; cursor: pointer; span { diff --git a/src/renderers/Form/NestedSelect.tsx b/src/renderers/Form/NestedSelect.tsx index 3d7d5f7f..fcd0b2f6 100644 --- a/src/renderers/Form/NestedSelect.tsx +++ b/src/renderers/Form/NestedSelect.tsx @@ -452,6 +452,7 @@ export default class NestedSelectControl extends React.Component< > {multiple ? ( ) : ( - {option.label} +
+ {option.label} +
)} {option.children && option.children.length ? (