FIX: attempts to enforce caret position in filter (#14589)

FIX: attempts to enforce caret position in filter (#14589)

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 5d02943..b7ab3f4 100644
--- a/app/assets/javascripts/select-kit/addon/components/select-kit.js
+++ b/app/assets/javascripts/select-kit/addon/components/select-kit.js
@@ -998,6 +998,10 @@ export default Component.extend(
         const input = this.getFilterInput();
         if (!forceHeader && input) {
           input.focus({ preventScroll: true });
+
+          if (typeof input.selectionStart === "number") {
+            input.selectionStart = input.selectionEnd = input.value.length;
+          }
         } else if (!this.selectKit.options.preventHeaderFocus) {
           const headerContainer = this.getHeader();
           headerContainer && headerContainer.focus({ preventScroll: true });

GitHub sha: 00e8baffa27fe36f7434f4d9ea5f18ed5b2f846d

This commit appears in #14589 which was approved by SamSaffron. It was merged by jjaffeux.