Skip to content

Commit

Permalink
Merge 0371268 into bb66c18
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellewhyte authored Dec 4, 2024
2 parents bb66c18 + 0371268 commit b214511
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/famous-buckets-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@khanacademy/wonder-blocks-dropdown": patch
---

[MultiSelect and SingleSelect] Remove `showOpenerLabelAsText` from sharedProps that are passed to SelectOpener
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ export default class MultiSelect extends React.Component<Props, State> {
className,
"aria-invalid": ariaInvalid,
"aria-required": ariaRequired,
showOpenerLabelAsText,
/* eslint-enable @typescript-eslint/no-unused-vars */
...sharedProps
} = this.props;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ export default class SingleSelect extends React.Component<Props, State> {
placeholder,
selectedValue,
testId,
showOpenerLabelAsText,
// the following props are being included here to avoid
// passing them down to the opener as part of sharedProps
/* eslint-disable @typescript-eslint/no-unused-vars */
Expand All @@ -414,7 +415,6 @@ export default class SingleSelect extends React.Component<Props, State> {
className,
"aria-invalid": ariaInvalid,
"aria-required": ariaRequired,
showOpenerLabelAsText,
...sharedProps
} = this.props;

Expand Down

0 comments on commit b214511

Please sign in to comment.