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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 8 deletions

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