telerik / kendo-ui-core

An HTML5, jQuery-based widget library for building modern web apps.
http://www.telerik.com/kendo-ui
Other
2.54k stars 1.9k forks source link

ToolBar, SplitButton, DropDownButton - inner components must allow granular enable/disable of its sub-items #7206

Closed kendo-bot closed 1 year ago

kendo-bot commented 1 year ago

The Kendo UI Toolbar widget supports enabling/disabling items via the various enable options for items, splitButtons and buttonGroups or after initialization via the enable() method. In this DOJO, I have created a toolbar with a splitButton that contains several sub-items. As you can see, I have disabled the second sub-item via the options.

However, after disabling and enabling the whole splitButton, the second sub-item is no longer disabled and can be used normally although its enabled property has never been touched.

Since the "main" item of a splitButton is an item on its own that a dedicated click-action can be assigned to etc., I would not expect the enabled property to effect its sub-items.

This is a regression in the ToolBar introduced with R2 SP1 2022.2.621

veselints commented 1 year ago

Current behavior is expected as it is in line with the SplitButton component API: https://docs.telerik.com/kendo-ui/api/javascript/ui/splitbutton/methods/enable