Skip to content

Commit 34052ce

Browse files
author
Kubit
committed
Modify data-testid on ListOptions component
1 parent 2f62c2a commit 34052ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/listOptions/listOptionsStandAlone.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export const ListOptionsStandAlone = React.forwardRef(
8080
props.caseSensitive
8181
);
8282
const title = props.title?.content || '';
83-
const dataTestIdOption = `${dataTestId}${title}Option${index}${option.label}`;
83+
const dataTestIdOption = `${dataTestId}${title}Option${index}${option.value || ''}`;
8484

8585
const optionComponent = (
8686
<Option

0 commit comments

Comments
 (0)