Skip to content

Commit 509ea2c

Browse files
committed
CW-259: fix for multiple aggs being open at a time
1 parent 7d90ef8 commit 509ea2c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

front/src/containers/AggDropDown/CustomDrop.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,9 @@ class CustomDropDown extends React.Component<CustomDropDownProps, CustomDropDown
361361

362362
this.setState({ selectedItems: selectedKeysPlaceHolders })
363363
}
364-
364+
if (prevProps.isOpen !== this.props.isOpen){
365+
this.setState({showItems : this.props.isOpen})
366+
}
365367
if(this.props.field.display == "GREATER_THAN_DROP_DOWN" && prevState.selectedItems == this.state.selectedItems){
366368
this.setState({ selectedItems: [{start: this.props.updater.input?.gte, end : this.props.updater.input?.lte}] })
367369
}

0 commit comments

Comments
 (0)