DEV: replaces jquery scrollTop by vanilla js code (#9543)

DEV: replaces jquery scrollTop by vanilla js code (#9543)

diff --git a/app/assets/javascripts/select-kit/components/select-kit.js b/app/assets/javascripts/select-kit/components/select-kit.js
index 76f8dea..e5c9394 100644
--- a/app/assets/javascripts/select-kit/components/select-kit.js
+++ b/app/assets/javascripts/select-kit/components/select-kit.js
@@ -658,17 +658,10 @@ export default Component.extend(
       );
 
       if (rowContainer) {
-        const $collection = $(
-          this.element.querySelector(".select-kit-collection")
-        );
-
-        const collectionTop = $collection.position().top;
+        const collectionContainer = rowContainer.parentNode;
 
-        $collection.scrollTop(
-          $collection.scrollTop() +
-            $(rowContainer).position().top -
-            collectionTop
-        );
+        collectionContainer.scrollTop =
+          rowContainer.offsetTop - collectionContainer.offsetTop;
       }
     },
 

GitHub sha: d83f39be

This commit appears in #9543 which was merged by jjaffeux.