Skip to content

Commit

Permalink
[@mantine/core] NativeSelect: fix incorrect defaultValue usage (manti…
Browse files Browse the repository at this point in the history
…nedev#943)

Co-authored-by: achmurali <[email protected]>
  • Loading branch information
achmurali and achmurali authored Mar 6, 2022
1 parent 7c60a1a commit 01b90d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ storiesOf('@mantine/core/NativeSelect/stories', module)
<Controlled label="Your favorite library" placeholder="Your favorite library" />
</div>
))
.add('String data', () => (
<NativeSelect label="Data as string" data={stringData} placeholder="String data" />
.add('Uncontrolled with default value', () => (
<NativeSelect
label="Data as string"
data={stringData}
placeholder="String data"
defaultValue="Vue"
/>
));
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export const NativeSelect = forwardRef<HTMLSelectElement, NativeSelectProps>(
wrapperProps,
inputStyle,
description,
defaultValue,
onChange,
value,
classNames,
Expand Down

0 comments on commit 01b90d0

Please sign in to comment.