From 3a4abf5498bad824ae40c2c2fa17c1b421c1af8b Mon Sep 17 00:00:00 2001 From: Adithyan Dinesh Date: Wed, 18 Mar 2026 16:36:28 +0530 Subject: [PATCH] Added a Clear button in Form panel radio section --- .../fields/GridSelector.tsx | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/extensions/ohif-gradienthealth-extension/src/_shared/FormGeneratorComponent/fields/GridSelector.tsx b/extensions/ohif-gradienthealth-extension/src/_shared/FormGeneratorComponent/fields/GridSelector.tsx index 2b61414..a2d692d 100644 --- a/extensions/ohif-gradienthealth-extension/src/_shared/FormGeneratorComponent/fields/GridSelector.tsx +++ b/extensions/ohif-gradienthealth-extension/src/_shared/FormGeneratorComponent/fields/GridSelector.tsx @@ -18,8 +18,32 @@ export default function GridSelector({ formIndex, name, value, defaultValue, opt { name } - - { Boolean(labels.find(ele=>(ele.value==val))) ? labels.find(ele=>(ele.value==val)).description : '?' } + + {Boolean(labels.find((ele) => ele.value === val)) ? ( + <> + ele.value === val).description} + > + {labels.find((ele) => ele.value === val).description} + + + + ) : ( + '?' + )} {