Skip to content

Commit d2b7c30

Browse files
authored
[frontend] fix create Status (#15221)
1 parent 7d17c40 commit d2b7c30

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

opencti-platform/opencti-front/src/private/components/common/form/StatusTemplateField.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ const StatusTemplateField: FunctionComponent<StatusTemplateFieldProps> = ({
130130
required={required}
131131
noOptionsText={t_i18n('No available options')}
132132
options={statusTemplates}
133-
onInputChange={(event: React.FocusEvent<HTMLInputElement>) => (
134-
handleSearch(event.target?.value)
135-
)}
133+
onInputChange={(_event: React.FocusEvent<HTMLInputElement>, value: string) => {
134+
handleSearch(value);
135+
}}
136136
openCreate={handleOpenStatusTemplateCreation}
137137
renderOption={(
138138
{ key, ...optionProps }: React.HTMLAttributes<HTMLLIElement> & { key?: string | number },

0 commit comments

Comments
 (0)