mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
fix(explore): fix clearing select data causes popover dismiss (#14221)
* fix(explore): fix clearing select data causes popover dismiss * wip: lint * wip: lint
This commit is contained in:
@@ -105,7 +105,7 @@ export default class SelectControl extends React.PureComponent {
|
||||
|
||||
// Beware: This is acting like an on-click instead of an on-change
|
||||
// (firing every time user chooses vs firing only if a new option is chosen).
|
||||
onChange(opt) {
|
||||
onChange(opt, actionMeta) {
|
||||
let optionValue = this.props.multi ? [] : null;
|
||||
if (opt) {
|
||||
if (this.props.multi) {
|
||||
@@ -126,7 +126,7 @@ export default class SelectControl extends React.PureComponent {
|
||||
}
|
||||
}
|
||||
// will eventually call `exploreReducer`: SET_FIELD_VALUE
|
||||
this.props.onChange(optionValue);
|
||||
this.props.onChange(optionValue, [], actionMeta);
|
||||
}
|
||||
|
||||
getSelectRef(instance) {
|
||||
|
||||
Reference in New Issue
Block a user