FIX: none row doesn’t have a value, use class to target it (#14659)

FIX: none row doesn’t have a value, use class to target it (#14659)

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 b7ab3f4..0567b33 100644
--- a/app/assets/javascripts/select-kit/addon/components/select-kit.js
+++ b/app/assets/javascripts/select-kit/addon/components/select-kit.js
@@ -698,9 +698,16 @@ export default Component.extend(
 
     _scrollToRow(rowItem, preventScroll = true) {
       const value = this.getValue(rowItem);
-      const rowContainer = this.element.querySelector(
-        `.select-kit-row[data-value="${value}"]`
-      );
+
+      let rowContainer;
+      if (isPresent(value)) {
+        rowContainer = this.element.querySelector(
+          `.select-kit-row[data-value="${value}"]`
+        );
+      } else {
+        rowContainer = this.element.querySelector(".select-kit-row.is-none");
+      }
+
       rowContainer && rowContainer.focus({ preventScroll });
     },
 

GitHub sha: d18e3a45b980218731c0f644837c7cc43ce3c894

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