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.91k forks source link

Dependencies can not be deleted in Gantt #7491

Open nelito987 opened 1 year ago

nelito987 commented 1 year ago

Bug report

The dependencies in the Gantt can not be removed.

Reproduction of the problem

  1. Open the demos - https://demos.telerik.com/kendo-ui/gantt/index
  2. Select a dependency line and press the 'Delete' key.

Current behavior

Nothing happens, there is no confirmation popup, and the dependency is not removed.

Expected/desired behavior

A confirmation dialog for confirming the deletion appears and the dependency should be removed.

The issue is a regression starting with the 2023 R2 SP1 ( 2023.2.718) version

Environment

pepinho24 commented 10 months ago

Requested Design and Accessibility review of the Gantt KB spec and behavior here: https://github.com/telerik/web-components-ux/issues/942

martintabakov commented 6 months ago

Also reported in 1620759

alestoya commented 1 month ago

Reported in 1657897

alestoya commented 1 month ago

Workaround

To outmaneuver this peculiarity, a possible approach would be to re-add the TabIndex attribute. To the Timeline Wrapper element of the Gantt.

<script>
    function tabIndex(target) {
        target = target;

        var element = target,
            TABINDEX = "tabindex",
            tabindex = target.attr(TABINDEX) || element.attr(TABINDEX);

        element.removeAttr(TABINDEX);
        target.attr(TABINDEX, !isNaN(tabindex) ? tabindex : 0);
    }

    $(document).ready(function () {
        // Gantt initialization logic.
        tabIndex($(".k-gantt-timeline"));
    })
</script>

Dojo Example