Open allan-ok opened 5 years ago
My guess is that AllowFocusWhenDisabled was added after many of our controls were implemented. @Austin-Lamb perhaps AllowFocusWhenDisabled should block keyboard input to the controls when focus is disabled?
@marb2000 - assigning to you for now. I think Jevan's suggestion is interesting, but may have unintended consequences we should think through. This feels like a feature request, so tagging that way.
@jevansaks - Note this could be fixed in ToggleSwitch more immediately if this feature request for AllowFocusWhenDisabled moves too slowly.
Describe the bug Grayed-out(Disabled) ToggleSwitch is actionable by tabbing into it and pressing space bar when AllowFocusWhenDisabled="True". Clicking and tapping still do not trigger a change in the toggle switch as expected.
Steps to reproduce the bug -Have a ToggleSwitch, with properties 'IsEnabled' set to false and 'AllowFocusWhenDisabled' set to true. -Tab into the ToggleSwitchand hit spacebar
Expected behavior -ToggleSwitch should not change