From 33fddd7c34b0bf0f7a29ae629468e3deb3e9eaba Mon Sep 17 00:00:00 2001 From: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com> Date: Thu, 30 May 2024 17:34:30 +0200 Subject: [PATCH] Remove attributes in unused in select input (#6725) Remove attributes in unused Co-authored-by: Federico Rodriguez --- plugins/main/public/components/common/form/input_select.tsx | 6 ------ plugins/main/public/components/common/form/types.ts | 2 ++ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/plugins/main/public/components/common/form/input_select.tsx b/plugins/main/public/components/common/form/input_select.tsx index b212f3f068..c610066136 100644 --- a/plugins/main/public/components/common/form/input_select.tsx +++ b/plugins/main/public/components/common/form/input_select.tsx @@ -7,9 +7,6 @@ export const InputFormSelect = ({ value, onChange, placeholder, - selectedOptions, - isDisabled, - isClearable, dataTestSubj, }: IInputFormType) => { return ( @@ -18,9 +15,6 @@ export const InputFormSelect = ({ value={value} onChange={onChange} placeholder={placeholder} - selectedOptions={selectedOptions} - isDisabled={isDisabled} - isClearable={isClearable} data-test-subj={dataTestSubj} /> ); diff --git a/plugins/main/public/components/common/form/types.ts b/plugins/main/public/components/common/form/types.ts index dfe5f60d29..2d009b5b88 100644 --- a/plugins/main/public/components/common/form/types.ts +++ b/plugins/main/public/components/common/form/types.ts @@ -7,6 +7,8 @@ export interface IInputFormType { isInvalid?: boolean; options: any; setInputRef: (reference: any) => void; + placeholder: string; + dataTestSubj: string; } export interface IInputForm {