Skip to content

Commit ccfae5c

Browse files
remove hidden attribute on placeholder plus fix typo in story (#137)
1 parent 8a46988 commit ccfae5c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/SelectNext.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ function NonMemoizedNonForwardedSelect<T extends SelectProps.Option[]>(
134134
"label": placeholder === undefined ? t("select an option") : placeholder,
135135
"selected": true,
136136
"value": "",
137-
"disabled": true,
138-
"hidden": true
137+
"disabled": true
139138
},
140139
...options
141140
].map((option, index) => (

stories/SelectNext.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { Equals } from "tsafe";
66

77
const { meta, getStory } = getStoryFactory<SelectProps<SelectProps.Option[]>>({
88
sectionName,
9-
"wrappedComponent": { "SelectNex": Select },
9+
"wrappedComponent": { "SelectNext": Select },
1010
"description": `
1111
- [See DSFR documentation](https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/bandeau-d-information-importante)
1212
- [See source code](https://github.com/codegouvfr/react-dsfr/blob/main/src/Notice.tsx)

0 commit comments

Comments
 (0)