mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Security Solution] fix blocklist form submission (#129059)
This commit is contained in:
parent
89fdb9afd6
commit
4e95fdd624
1 changed files with 8 additions and 5 deletions
|
@ -287,16 +287,19 @@ export const BlockListForm = memo(
|
|||
|
||||
const handleOnDescriptionChange = useCallback(
|
||||
(event: React.ChangeEvent<HTMLTextAreaElement>) => {
|
||||
const nextItem = {
|
||||
...item,
|
||||
description: event.target.value,
|
||||
};
|
||||
validateValues(nextItem);
|
||||
|
||||
onChange({
|
||||
isValid: isValid(errorsRef.current),
|
||||
item: {
|
||||
...item,
|
||||
description: event.target.value,
|
||||
},
|
||||
item: nextItem,
|
||||
});
|
||||
setHasFormChanged(true);
|
||||
},
|
||||
[onChange, item]
|
||||
[onChange, item, validateValues]
|
||||
);
|
||||
|
||||
const handleOnOsChange = useCallback(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue