Skip to content

Commit

Permalink
Programatically remove any potential disabled prop
Browse files Browse the repository at this point in the history
  • Loading branch information
mirka committed Feb 7, 2024
1 parent cf5bb5c commit aa2d573
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/components/src/search-control/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ function UnforwardedSearchControl(
>,
forwardedRef: ForwardedRef< HTMLInputElement >
) {
// @ts-expect-error The `disabled` prop is not yet supported in the SearchControl component.
// Work with the design team if you need this feature.
delete restProps.disabled;

const searchRef = useRef< HTMLInputElement >( null );
const instanceId = useInstanceId(
SearchControl,
Expand Down

0 comments on commit aa2d573

Please sign in to comment.