Skip to content

Commit c67c636

Browse files
committed
Revert "feat: Be able to override props with native props (#274)"
This reverts commit 1e91cdf.
1 parent c28f23d commit c67c636

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ export const Input = memo(
139139
{(() => {
140140
const nativeInputOrTextArea = (
141141
<NativeInputOrTextArea
142+
{...(nativeInputOrTextAreaProps as {})}
142143
className={cx(
143144
fr.cx(
144145
"fr-input",
@@ -159,7 +160,6 @@ export const Input = memo(
159160
aria-describedby={messageId}
160161
type={textArea ? undefined : nativeInputProps?.type ?? "text"}
161162
id={inputId}
162-
{...(nativeInputOrTextAreaProps as {})}
163163
/>
164164
);
165165

src/Select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ export const Select = memo(
9999
</label>
100100
)}
101101
<select
102+
{...nativeSelectProps}
102103
className={cx(fr.cx("fr-select"), nativeSelectProps.className)}
103104
id={selectId}
104105
aria-describedby={stateDescriptionId}
105106
disabled={disabled}
106-
{...nativeSelectProps}
107107
>
108108
{children}
109109
</select>

src/SelectNext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ function NonMemoizedNonForwardedSelect<T extends SelectProps.Option[]>(
147147
</label>
148148
)}
149149
<select
150+
{...(nativeSelectProps as any)}
150151
className={cx(fr.cx("fr-select"), nativeSelectProps?.className)}
151152
id={selectId}
152153
aria-describedby={stateDescriptionId}
153154
disabled={disabled}
154-
{...(nativeSelectProps as any)}
155155
>
156156
{[
157157
{

0 commit comments

Comments
 (0)