Skip to content

Commit

Permalink
Don't swallow the disabled from nativ props if not explicitely provided
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Jul 16, 2024
1 parent be62fdb commit 79dce11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SelectNext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function NonMemoizedNonForwardedSelect<T extends SelectProps.Option[]>(
label,
hint,
nativeSelectProps,
disabled = false,
disabled = nativeSelectProps?.disabled ?? false,
options,
state = "default",
stateRelatedMessage,
Expand Down

0 comments on commit 79dce11

Please sign in to comment.