Skip to content

SelectionZone: Fix 'select-on-click' behavior to be opt-out for buttons#4907

Merged
dzearing merged 3 commits intomicrosoft:masterfrom
ThomasMichon:auto-select
May 17, 2018
Merged

SelectionZone: Fix 'select-on-click' behavior to be opt-out for buttons#4907
dzearing merged 3 commits intomicrosoft:masterfrom
ThomasMichon:auto-select

Conversation

@ThomasMichon
Copy link
Copy Markdown
Member

Overview

A previous PR, #4544, caused a breaking change in the behavior of SelectionZone, because teams were relying on the select-on-mouse-down behavior before input elements were clicked within selectable regions.

This PR fixes that issue by putting the 'disable-auto-select' behavior behind a prop, and then adds a per-element data-selection-select attribute to enable the auto-select-on-mousedown for target elements if that prop is also set.

Added unit tests and documentations for the new behaviors, with examples.

@dzearing dzearing merged commit 92a75f3 into microsoft:master May 17, 2018
@JasonGore
Copy link
Copy Markdown
Member

JasonGore commented May 17, 2018

There was an issue for this, #4866, that I opened #4894 to address. I will close my PR. Please search issues for PRs submitted in case you find a match that you can tie in with the PR template. Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants