WebSideMenu disabled item allows click open it's subitems

Given the following
it := NavMenu.Items.Add;
// it.Text := 'Purchasing';
it.Text := GetLangStr(DM.E_UnitStrs, '', '2');
it.Hint := it.Text;
it.MaterialGlyph := 'shopping_cart';
it.MaterialGlyphType := mgOutlined;
it.Expanded := false;
it.Enabled := false;
it.ContentControl := HostMasterPanel;

it := NavMenu.Items.Add;
// it.Text := 'Orders';
it.Text := GetLangStr(DM.E_UnitStrs, '', '3');
it.Hint := it.Text;
it.MaterialGlyph := 'shopping_basket';
it.MaterialGlyphType := mgOutlined;
it.SubItem := True;
it.Enabled := true;
it.ContentControl := HostMasterPanel;

Purchasing menu item and it's arrow shows dimmed out, but when clicked drops open it's submenus which can be executed.
Should it not drop open if it is disabled ?

Hi,

This behavior is intentional and aligns with the default functionality of the Delphi VCL TTreeView component. When a parent item has its Enabled property set to False, direct interaction with the item is disabled. However, this does not affect its ability to expand or collapse.

If you wish to prevent interaction with the subitems as well, you'll need to explicitly set the Enabled property to False for each subitem individually.

This is a valuable suggestion. We’ll investigate the possibility of introducing an additional property or event in the future to provide finer control over expand/collapse behavior.