select2-multi-checkboxes icon indicating copy to clipboard operation
select2-multi-checkboxes copied to clipboard

Dropdown options Scroll to top after selecting any option

Open jj-theInvincible opened this issue 5 years ago • 4 comments

I checked in the fiddle link https://jsfiddle.net/wasikuss/7ak9skbb/ as well as in my application, if you scroll down and select an option then the dropdown again scrolls to the top. In case of a long list of options, it becomes frustrating for the user to scroll back to an option to select or unselect it.

jj-theInvincible avatar Dec 03 '20 06:12 jj-theInvincible

please write what version of Select2 you use

wasikuss avatar Dec 03 '20 22:12 wasikuss

I have the same problem here.

Select2 4.0.5

WalissonPires avatar Jul 29 '22 14:07 WalissonPires

I have the same problem with Select2 4.0.3 I commented two lines as below; the problem solved.

 container.on('select', function () {
  if (!container.isOpen()) {
    return;
  }

  self.setClasses();
  //self.highlightFirstItem();
});

container.on('unselect', function () {
  if (!container.isOpen()) {
    return;
  }

  self.setClasses();
  //self.highlightFirstItem();
});

serafettin82 avatar Aug 10 '22 13:08 serafettin82

amd-based version seems to not have this issue.

https://jsfiddle.net/wasikuss/4gaodbcy/

wasikuss avatar Aug 10 '22 15:08 wasikuss