Skip to content

Commit

Permalink
fix style in suggester
Browse files Browse the repository at this point in the history
  • Loading branch information
ddecrulle committed Jul 11, 2024
1 parent d851291 commit f944e76
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Suggester.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ export const Suggester: LunaticSlotComponents["Suggester"] = props => {
}}
renderInput={params => {
const { InputProps, disabled, id, inputProps } = params;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { className, ...muiInputProps } = inputProps;
return (
<Input
ref={InputProps.ref}
Expand All @@ -81,15 +83,16 @@ export const Suggester: LunaticSlotComponents["Suggester"] = props => {
id={id}
addon={
<Button
iconId="fr-icon-delete-line"
iconId="ri-close-line"
priority="secondary"
onClick={onClear}
title="vider le champ"
disabled={inputValue === ""}
/>
}
disabled={disabled}
nativeInputProps={{
...inputProps,
...muiInputProps,
placeholder: "Commencez votre saisie",
"aria-labelledby": questionId,
...(state === "error"
Expand Down

0 comments on commit f944e76

Please sign in to comment.