Commit f4ee656c authored by Zhou Fang's avatar Zhou Fang Committed by Martin Lowe
Browse files

diabled selected wg and fixed a style issue

parent a042dca5
......@@ -170,7 +170,8 @@ html {
margin: 0 14px;
}
.eclipsefdn-membership-webform .msg-popup {
position: absolute;
z-index: 1000;
position: fixed;
top: -70px;
left: calc(50vw - 200px);
width: 400px;
......
......@@ -92,6 +92,14 @@ const WorkingGroup = ({ formik, fullWorkingGroupList, isLoading }) => {
getOptionSelected={(option, value) =>
option.value === value.value
}
getOptionDisabled={(option) => {
// disable all selected WGs
const selectedWG = !!formik.values.workingGroups.find(
(selectedWG) =>
selectedWG.workingGroup.label === option.label
);
return selectedWG;
}}
fullWidth={true}
onChange={(ev, value) => {
// this to clear the participation level when user selects another working group
......
......@@ -256,7 +256,8 @@ html {
.msg-popup {
& {
position: absolute;
z-index: 1000;
position: fixed;
top: -70px;
left: calc(50vw - 200px);
width: 400px;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment