From 8c5a71fff64e7640f4e3c5be14b5a12d9b223c28 Mon Sep 17 00:00:00 2001 From: Ryan Vazquez Date: Wed, 10 Feb 2021 11:49:13 -0500 Subject: [PATCH] clear other field when toggling reason --- plugins/cost-insights/src/forms/AlertDismissForm.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/cost-insights/src/forms/AlertDismissForm.tsx b/plugins/cost-insights/src/forms/AlertDismissForm.tsx index 4271785958..47b4dc80cb 100644 --- a/plugins/cost-insights/src/forms/AlertDismissForm.tsx +++ b/plugins/cost-insights/src/forms/AlertDismissForm.tsx @@ -66,6 +66,9 @@ export const AlertDismissForm = forwardRef< }; const onReasonChange = (_: ChangeEvent, value: string) => { + if (other) { + setOther(null); + } setReason(value as AlertDismissReason); };