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

贡献者指南