We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea7687e commit 0db5de8Copy full SHA for 0db5de8
1 file changed
src/components/Select.jsx
@@ -87,7 +87,7 @@ const CustomOption = props => {
87
innerRef={ref}
88
innerProps={{
89
...props.innerProps,
90
- "data-cy": dataCy || `${props.hyphenatedDataCyLabel}-select-option`,
+ "data-cy": dataCy || `${hyphenize(props.label)}-select-option`,
91
}}
92
/>
93
);
@@ -101,7 +101,7 @@ const Placeholder = props => {
101
{...props}
102
103
104
- "data-cy": selectProps
+ "data-cy": selectProps?.hyphenatedDataCyLabel
105
? `${selectProps.hyphenatedDataCyLabel}-select-placeholder`
106
: "select-placeholder",
107
0 commit comments