Disabled tabs able to be navigated to in some conditions
When using the SfTab component, disabled tabs can still be selected under certain conditions:
- Via Hotkey (Using toolbelt.hotkey library): A hotkey mapped to a disabled tab will activate it, allowing the tab’s content to be shown even though it is marked disabled.
- On Page Load: If the disabled tab is set as the selected index on initial load, the tab will be activated and displayed.
- Via Button Click (Programmatic Navigation): Triggering tab selection through code or an external button click will also navigate to disabled tabs.
Expected Behavior:
- Disabled tabs should not be selectable or displayed through any interaction method (keyboard, programmatic, or initial load).
Actual Behavior:
- Disabled tabs can be navigated to and displayed, which breaks the expected disabled state.
Steps to Reproduce:
- Create an SfTab with two tabs: one enabled, one disabled.
- Attempt to select the disabled tab using: A hotkey, Page load with SelectedItem or SelectedIndex set to the disabled tab, and A button click that programmatically sets the disabled tab as selected.
- Observe that the disabled tab becomes active and its content is displayed.
Impact:
This undermines the purpose of disabling a tab. It may allow users toA navigate into sections of the UI that should remain inaccessible.
Code Sample:
Attached is a text file with a code snippet you can use to repro this as well it shows selection of a disabled tab through onload, hotkey and button click
Attachment: SyncfusionRepro_e8a5e311.txt
Regards,
Sivakumar S
Hi Jason,
“Disabled Tabs in SfTab Component Can Be Navigated to Under Specific Conditions” has been resolved in the release version 31.2.3. To access this fix, we suggest you update the package to the version (31.2.3) or latest. We have also included the sample in the main version for your reference.
Sample: https://blazorplayground.syncfusion.com/hXBSMiDyrddHIHmB
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you require any further assistance.
Regards,
Sivakumar S
- 2 Replies
- 2 Participants
-
JR Jason Rodriguez
- Sep 22, 2025 04:49 AM UTC
- Nov 5, 2025 07:32 AM UTC