Merge pull request #4473 from backstage/default-dismiss-form-bugfix
Default dismiss form bugfix
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-cost-insights': patch
|
||||
---
|
||||
|
||||
fixes a bug in default dismiss form where other text input persists between reason selections
|
||||
@@ -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