From ded24288816365dc488066eac82cf05b0a991c54 Mon Sep 17 00:00:00 2001 From: Alex Cheung Date: Mon, 28 Oct 2024 17:26:59 +0800 Subject: [PATCH] combo update --- src/pages/PublicNotice/Search_GLD/SearchForm.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/pages/PublicNotice/Search_GLD/SearchForm.js b/src/pages/PublicNotice/Search_GLD/SearchForm.js index 5ff854b..d0fb062 100644 --- a/src/pages/PublicNotice/Search_GLD/SearchForm.js +++ b/src/pages/PublicNotice/Search_GLD/SearchForm.js @@ -296,6 +296,7 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss disablePortal id="orgId" options={orgCombo} + groupBy={(option) => option.groupType} size="small" value={orgSelected} getOptionLabel={(option) => option.name? option.name : ""} @@ -315,6 +316,14 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss }} /> )} + renderGroup={(params) => ( + + + {params.group} + + {params.children} + + )} /> : <>