clear other field when toggling reason
This commit is contained in:
@@ -66,6 +66,9 @@ export const AlertDismissForm = forwardRef<
|
||||
};
|
||||
|
||||
const onReasonChange = (_: ChangeEvent<HTMLInputElement>, value: string) => {
|
||||
if (other) {
|
||||
setOther(null);
|
||||
}
|
||||
setReason(value as AlertDismissReason);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user