DEV: simplify logic when selecting an undefined value (#14225)
This commit is contained in:
parent
ee7809e8a8
commit
36a81435cf
|
@ -783,14 +783,7 @@ export default Component.extend(
|
|||
|
||||
select(value, item) {
|
||||
if (!isPresent(value)) {
|
||||
if (!this.validateSelect(this.selectKit.highlighted)) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.selectKit.change(
|
||||
this.getValue(this.selectKit.highlighted),
|
||||
this.selectKit.highlighted
|
||||
);
|
||||
this._onClearSelection();
|
||||
} else {
|
||||
const existingItem = this.findValue(this.mainCollection, item);
|
||||
if (existingItem) {
|
||||
|
|
Loading…
Reference in New Issue