DEV: simplify logic when selecting an undefined value (#14225)

This commit is contained in:
Joffrey JAFFEUX
2021-09-03 16:40:20 +02:00
committed by GitHub
parent ee7809e8a8
commit 36a81435cf

View File

@@ -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) {