[Feature Request] Option to reset pointer on close and search

Author: teuneboonCreated Jul 12, 2019Updated Jun 19, 2026

We found the behavior that the pointer remembers where it is when opening/closing/searching in the multiselect confusing, an option to reset the pointer on close would be nice. I tried using the pointerReset() method from pointerMixin.js but that only seems to do anything if closeOnSelect is set to true. Our current "hack" is to use the @close event of the multiselect to call a method called resetPointer():

resetPointer() {
    this.$refs.multiselect.pointer = 0;
    if (this.$refs.multiselect.$refs.list) {
        this.$refs.multiselect.$refs.list.scrollTop = 0;
    }
}

Works for now, but kind of ugly to basically copy the code from the pointerReset() method in the library itself.

If we apply this method @search-change it causes some unexpected behavior where it selects the first element of the list even if it's a group label(normally it selects the first "real" label, not the group label) so we can't use that, so a fix for that would also be nice.