diff --git a/src/app-components/Input/Input.tsx b/src/app-components/Input/Input.tsx index 99521a2620..7468025459 100644 --- a/src/app-components/Input/Input.tsx +++ b/src/app-components/Input/Input.tsx @@ -34,16 +34,31 @@ export type InputProps = { >; export function Input(props: InputProps) { - const { size = 'sm', readOnly, ...rest } = props; + const { + size = 'sm', + prefix, + suffix, + characterLimit, + error, + disabled, + id, + readOnly, + type, + value, + className, + 'aria-label': ariaLabel, + 'aria-describedby': ariaDescribedby, + onChange, + onBlur, + autoComplete, + required, + placeholder, + inputMode, + style, + textonly, + } = props; - const handlePaste = (event: React.ClipboardEvent) => { - if (readOnly) { - event.preventDefault(); - } - }; - - if (props.textonly) { - const { value, id, className } = props; + if (textonly) { if (value === null || (typeof value === 'string' && value.length === 0)) { return null; } @@ -62,10 +77,26 @@ export function Input(props: InputProps) { return ( ); } diff --git a/src/layout/InstantiationButton/InstantiationButton.tsx b/src/layout/InstantiationButton/InstantiationButton.tsx index 1d54f38b40..ad4efd40e5 100644 --- a/src/layout/InstantiationButton/InstantiationButton.tsx +++ b/src/layout/InstantiationButton/InstantiationButton.tsx @@ -32,7 +32,6 @@ export const InstantiationButton = ({ children, ...props }: Props) => { return (