Inline onSelectItem of NamespaceSelect
This commit is contained in:
parent
06376254b0
commit
fcc82ab601
|
@ -3,7 +3,6 @@ import Api from './api';
|
|||
|
||||
export default class NamespaceSelect {
|
||||
constructor(opts) {
|
||||
this.onSelectItem = this.onSelectItem.bind(this);
|
||||
var fieldName, showAny;
|
||||
this.dropdown = $(opts.dropdown);
|
||||
showAny = true;
|
||||
|
@ -51,12 +50,10 @@ export default class NamespaceSelect {
|
|||
}
|
||||
},
|
||||
renderRow: this.renderRow,
|
||||
clicked: this.onSelectItem
|
||||
});
|
||||
}
|
||||
|
||||
onSelectItem(options) {
|
||||
clicked(options) {
|
||||
const { e } = options;
|
||||
return e.preventDefault();
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue