angular-ui/ui-grid

Multiselect with shift in IE 11

Open

#3,392 建立於 2015年4月30日

在 GitHub 查看
 (5 留言) (0 反應) (1 負責人)JavaScript (2,496 fork)batch import
Browser IEhelp wantedtype: bug

倉庫指標

Star
 (5,395 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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()">
});

貢獻者指南