What Changed
We changed the default KeyboardNavigationEnabled property value to true
and marked this property as obsolete. The Blazor Grid component now supports keyboard navigation and built-in shortcuts by default.
Reasons for Change
Keyboard navigation is one of the most important principles of Web accessibility. As such, it should be enabled in Blazor components by default.
Impact on Existing Apps
This change affects your application if you leave the KeyboardNavigationEnabled property unspecified.
How to Update Existing Apps
If you set the KeyboardNavigationEnabled property to true
, you may want to remove it since the property is now redundant.
If you leave the KeyboardNavigationEnabled property unspecified, built-in keyboard support might break your custom keyboard navigation logic. In this case, you can perform one of the following actions:
Recommended Approach
Test your keyboard navigation logic with v24.1 and make changes, if necessary.
Temporary Solution (Not Recommended)
If you are not ready to update your application, you can temporarily disable built-in keyboard support. To disable keyboard support in a Grid, set its KeyboardNavigationEnabled property to false
. To disable keyboard support in all Grid components simultaneously, set the CompatibilitySettings.DisableKeyboardNavigationInGrid property to true
. Note that we may remove these properties in the next versions.