From 137a1be6d8b6dce154774e6c4ae8a2cf6273d280 Mon Sep 17 00:00:00 2001 From: Rithvik Nishad Date: Sat, 1 Jul 2023 17:07:49 +0000 Subject: [PATCH] Make investigation table responsive / scrollable (#5812) * fixes #5809 * Fix value selection * fix height * add nullish check * fix select dropdown overflow --------- Co-authored-by: Ashesh3 <3626859+Ashesh3@users.noreply.github.com> --- src/Components/Facility/Investigations/Table.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/Components/Facility/Investigations/Table.tsx b/src/Components/Facility/Investigations/Table.tsx index ce14b042938..525949f8470 100644 --- a/src/Components/Facility/Investigations/Table.tsx +++ b/src/Components/Facility/Investigations/Table.tsx @@ -10,7 +10,7 @@ const TestRow = ({ data, value, onChange, i }: any) => { {data.name} - + {data.investigation_type === "Choice" ? ( { optionLabel={(o: string) => o} optionValue={(o: string) => o} onChange={onChange} + errorClassName="hidden" /> ) : ( { }; return ( -
+
{title &&

{title}

}
{ onChange={(e) => setSearchFilter(e.value)} />
-
+
@@ -99,7 +100,10 @@ export const TestTable = ({ title, data, state, dispatch }: any) => { data={t} i={i} key={t.external_id} - value={state[t.external_id] && state[t.external_id].value} + value={ + state[t.external_id] && + (state[t.external_id].value ?? state[t.external_id].notes) + } onChange={(e: FieldChangeEvent) => handleValueChange( t.investigation_type === "Float"