-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shift click with multiple selection behaves awkwardly in Edge #1203
Comments
The current version of dgrid wasn't designed to work with Microsoft Edge, so labelling this as an enhancement. |
I intend for us to fix any Edge bugs we discover prior to tagging any new releases. How it's labeled here doesn't really matter to me :) |
Prevents strange row highlighting in Edge when selecting multiple rows by shift clicking. Fixes dojo#1203
Prevents highlighting inappropriate HTML in Edge when selecting multiple rows by shift clicking. Fixes dojo#1203
I looked at Bradley's PR, but digging further into this issue, I'm realizing that Edge is not going down the same code path as IE because Edge defines I also suspect we may be able to yank out a bunch of code from Gotta love it when we don't UA sniff because of how browsers cheat the UA string...and then a browser goes and cheats something else that makes feature detection just as brittle. |
Oh right. I should also mention that dgrid's |
Currently running automated tests over an alternate fix, which I've already verified manually: https://github.com/kfranqueiro/dgrid/commit/7211f6d3f261bd98fd35ff1e62b22b5ac0cdf65a |
Edge fools feature detection by populating both msUserSelect and WebkitUserSelect. This change forces Edge down the same code path as IE, and removes redundant code that is already present in all versions of Dojo that dgrid supports now. (cherry picked from commit 7211f6d)
In Edge, if shift + click is used in Edge, the browser also highlights all the text from the last focused element outside of the grid body to the point that was shift clicked. This can be easily replicated in the OnDemand test page for dgrid. Simply click text outside of a grid, or a header, then click a row in the grid and shift click another row. This behavior can be avoided by calling
preventDefault
on the event, but I don't know what kind of unintended side effects that might have.The text was updated successfully, but these errors were encountered: