angular-ui/ui-grid

Multiselect with shift in IE 11

Open

#3,392 opened on Apr 30, 2015

View on GitHub
 (5 comments) (0 reactions) (1 assignee)JavaScript (5,395 stars) (2,496 forks)batch import
Browser IEhelp wantedtype: bug

Description

Using mulitselect with shift on the grid in IE gives also select other random dom elements, which gives a buggy feeling.

Tested on http://ui-grid.info/docs/#/tutorial/210_selection and ui-grid 3.0-RC21 in our project.

Tested with IE11, version number 11.0.9600.17728, update 11.0.18.

Steps to reproduce:

  1. Open http://ui-grid.info/docs/#/tutorial/210_selection in IE11.
  2. Select one element in the list by clicking the left checkbox
  3. Press shift, and click on an other element in the list

This happened when I used shift to select multiple elements; image

I'am trying to apply the following workarround, and it seems to work. Hopefully it won't break anything else

<div ui-grid="gridOptions" ui-grid-selection ui-grid-resize-columns ng-mousedown="$event.shiftKey && $event.preventDefault()">
});

Contributor guide

Multiselect with shift in IE 11 · angular-ui/ui-grid#3392 | Good First Issue