diff --git a/.changeset/famous-buckets-vanish.md b/.changeset/famous-buckets-vanish.md new file mode 100644 index 000000000..b34d990f9 --- /dev/null +++ b/.changeset/famous-buckets-vanish.md @@ -0,0 +1,5 @@ +--- +"@khanacademy/wonder-blocks-dropdown": patch +--- + +[MultiSelect and SingleSelect] Remove `showOpenerLabelAsText` from sharedProps that are passed to SelectOpener diff --git a/packages/wonder-blocks-dropdown/src/components/multi-select.tsx b/packages/wonder-blocks-dropdown/src/components/multi-select.tsx index e8922fe19..92b077f61 100644 --- a/packages/wonder-blocks-dropdown/src/components/multi-select.tsx +++ b/packages/wonder-blocks-dropdown/src/components/multi-select.tsx @@ -528,6 +528,7 @@ export default class MultiSelect extends React.Component { className, "aria-invalid": ariaInvalid, "aria-required": ariaRequired, + showOpenerLabelAsText, /* eslint-enable @typescript-eslint/no-unused-vars */ ...sharedProps } = this.props; diff --git a/packages/wonder-blocks-dropdown/src/components/single-select.tsx b/packages/wonder-blocks-dropdown/src/components/single-select.tsx index c3e31b17e..6075b2b97 100644 --- a/packages/wonder-blocks-dropdown/src/components/single-select.tsx +++ b/packages/wonder-blocks-dropdown/src/components/single-select.tsx @@ -398,6 +398,7 @@ export default class SingleSelect extends React.Component { 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 */ @@ -414,7 +415,6 @@ export default class SingleSelect extends React.Component { className, "aria-invalid": ariaInvalid, "aria-required": ariaRequired, - showOpenerLabelAsText, ...sharedProps } = this.props;