Skip to content

Commit eafca89

Browse files
authored
fix(VariantManagement): allow quotes in VariantItem name (#7108)
Fixes #7106
1 parent cdf7401 commit eafca89

File tree

1 file changed

+1
-1
lines changed
  • packages/main/src/components/VariantManagement

1 file changed

+1
-1
lines changed

packages/main/src/components/VariantManagement/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ const VariantManagement = forwardRef<HTMLDivElement, VariantManagementPropTypes>
228228
const castChild = child as ReactElement<VariantItemPropTypes>;
229229
let updatedProps: Omit<SelectedVariant, 'children' | 'variantItem'> = {};
230230
const currentVariant = popoverRef.current.querySelector(
231-
`ui5-li[data-children="${castChild.props.children}"]`
231+
`ui5-li[data-children="${CSS.escape(castChild.props.children)}"]`
232232
);
233233
callbackProperties.prevVariants.push(castChild.props);
234234
if (defaultView) {

0 commit comments

Comments
 (0)