Skip to content

Conversation

@kmelmon
Copy link
Contributor

@kmelmon kmelmon commented Jun 12, 2020

Fixes #4703

This fixes a regression that came in with this change:
#4180

this change introduced a convention that setting tabIndex = -1 makes the control no longer tab focusable. This stomps over the behavior of the acceptsKeyboardFocus prop, making it not work correctly anymore.

This fix reverts that behavior. To achieve this behavior, customers should set acceptsKeyboarFocus = false. Note that this property will become deprecated and replaced by focusable.

Microsoft Reviewers: Open in CodeFlow

kmelmon and others added 3 commits June 12, 2020 15:49
…osoft#4893)

* Change files

* revert dfc57fc

* set default tab index to -1, the hope is to be in line with xbox assumption

* xbox doesn't seem to rely on this, changing default back to match xaml default
@kmelmon kmelmon requested a review from a team as a code owner June 12, 2020 22:59
@ghost ghost added the Area: Focus label Jun 12, 2020
@acoates-ms acoates-ms changed the title Cherry-pick PR #4893 for tab-focus bug #4703 [0.61] Cherry-pick PR #4893 for tab-focus bug #4703 Jun 12, 2020
@kmelmon
Copy link
Contributor Author

kmelmon commented Jun 13, 2020

The CI loop is failing due to out-of-memory. This is unrelated to the change, I will force it in if necessary.

@kmelmon kmelmon merged commit f8f7c3b into microsoft:0.61-stable Jun 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant