Unplanned
Last Updated: 05 Apr 2024 08:46 by JG

### Bug report

The ContextMenu does not show when the mouse is moved normally. It will show only when the mouse is moved very slowly.

### Reproduction of the problem

1. Create a Grid with a custom column command.

2. Define a ContextMenu that will be displayed when the custom column command is clicked.

3. Click over a specified column command - the ContextMenu opens.

4. Move the mouse over another row and click the custom column command - the ContextMenu does not open.

A Dojo sample for reproduction: https://dojo.telerik.com/aYiVUzum

### Current behavior

The ContextMenu does not open over every item as expected.

### Expected/desired behavior

The ContextMenu must open when clicking each item.

#### The issue is a regression starting with 2023.1.314 version

### Workaround

Add the following script before the ContextMenu initialization:

  <script>
    function contains(parent, child) {
        try {
            return $.contains(parent, child);
        } catch (e) {
            return false;
        }
    }

    kendo.ui.ContextMenu.fn.open = function (x, y) {
        var OPEN = "open",
            ACTIVATE = "activate",
            DOCUMENT_ELEMENT = $(document.documentElement),
            NS = ".kendoMenu";
        var that = this;

        x = $(x)[0];

        if (contains(that.element[0], $(x)[0]) || that._itemHasChildren($(x))) { // call parent open for children elements
            kendo.ui.Menu.fn.open.call(that, x);
        } else {
            if (that._triggerEvent({ item: that.element, type: OPEN }) === false) {
                if (that.popup.visible() && that.options.filter) {
                    that.popup.close(true);
                    that.popup.element.parent().kendoStop(true);
                }

                if (!that._triggerFocusOnActivate) {
                    that._triggerFocusOnActivate = that._focusMenu.bind(that);
                }
                that.bind(ACTIVATE, that._triggerFocusOnActivate);
                if (y !== undefined) {
                    var overflowWrapper = that._overflowWrapper();
                    if (overflowWrapper) {
                        var offset = overflowWrapper.offset();
                        x -= offset.left;
                        y -= offset.top;
                    }
                    that.popup.wrapper.hide();
                    that._configurePopupScrolling(x, y);
                    that.popup.open(x, y);
                } else {
                    that.popup.options.anchor = (x ? x : that.popup.anchor) || that.target;
                    that.popup.element.parent().kendoStop(true);
                    that._configurePopupScrolling();
                    that.popup.open();
                }

                DOCUMENT_ELEMENT.off(that.popup.downEvent, that.popup._mousedownProxy);
                DOCUMENT_ELEMENT
                    .on(kendo.support.mousedown + NS + that._marker, that._closeProxy);
            }
        }

        return that;
    };
</script>

### Environment

* **Kendo UI version: 2023.1.314
* **Browser: [all] 

Unplanned
Last Updated: 05 Jun 2023 08:55 by Andy

Bug report

When a ContextMenu is initialized with closeOnClick: false and scrollable: true upon selection of an item the scroll position is reset.

Reproduction of the problem

  1. Run this dojo
  2. Click on the button to open the ContextMenu
  3. Scroll down the options of the ContextMenu
  4. Check a checkbox
  5. Click on the scrollbar of the ContextMenu

Current behavior

The scroll position is moved to the top - to focus is on the first item of the available options.
screencast

Expected/desired behavior

With closeOnClick: false and scrollable: true focus should remain on the selected item.

Environment

  • Kendo UI version: 2023.1.425
  • Browser: [all]
Unplanned
Last Updated: 02 May 2022 16:32 by Barry Burton
Created by: Barry Burton
Comments: 0
Category: Menu
Type: Bug Report
1

### Bug report

The Menu flickers on page load (i.e., when reloading the page, when navigating through the application pages).

### Reproduction of the problem

Attached is a demo that replicates the issue.

### Expected/desired behavior

The Menu should be rendered smoothly.

### Environment

* **Kendo UI version: 2022.1.412
* **jQuery version: 3.5.1
* **Browser: [all]

Unplanned
Last Updated: 25 Mar 2020 14:14 by ADMIN
Created by: Stephane
Comments: 1
Category: Menu
Type: Bug Report
1

Hello,

On Chrome for Android, the dropdown menu appears offscreen. With Firefox for Android or Chrome desktop, it works well.
This sample reproduces the problem : https://runner.telerik.io/fullscreen/@kakone/azuPAHuy. If you click on the right item (user icon), the dropdown appears offscreen.

Unplanned
Last Updated: 18 Feb 2020 11:30 by ADMIN

Bug report

Reproducible in Chrome and Firefox. Not reproducible in IE11.

Reproduction of the problem

Dojo example.
There are two Menus. In the first one navigation is triggered from the function passed to the "Sub Item 2" item's url option. In the second Menu navigation is triggered in the Menu's select event handler.

  1. Hover "Item 2" and click "Sub Item 2"
    The wiki page will open in a new tab.
  2. Check the Menu in the original tab with the dojo.

Current behavior

Doing this in the first Menu, results in the submenu remaining open.

Expected/desired behavior

The submenu should close in both scenarios, since closeOnClick is enabled by default and the select event fires before triggering the navigation.

Environment

  • Kendo UI version: 2020.1.114
  • jQuery version: x.y
  • Browser: [Chrome XX | Firefox XX]