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

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

diff --git a/app/assets/javascripts/select-kit/addon/components/select-kit.js b/app/assets/javascripts/select-kit/addon/components/select-kit.js
index a0f547c..35c75af 100644
--- a/app/assets/javascripts/select-kit/addon/components/select-kit.js
+++ b/app/assets/javascripts/select-kit/addon/components/select-kit.js
@@ -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) {

GitHub sha: 36a81435cf5f64dfc34d3a435b295ddd6472b1cc

This commit appears in #14225 which was approved by CvX. It was merged by jjaffeux.