kendo-ui-core icon indicating copy to clipboard operation
kendo-ui-core copied to clipboard

Custom ContextMenu tool in Editor does not trigger close

Open kendo-bot opened this issue 5 months ago • 0 comments

Bug report

Custom ContextMenu tool in Editor does not trigger close in built-in ColorPicker tools (probably others as well) after 2025.1.211

Reproduction of the problem

  1. Open the Dojo - https://dojo.telerik.com/vkqfrNLN

  2. Click on Background color ColorPicker

  3. Click on custom ContextMenu

Both popups overlap

Image

Expected/desired behavior

Wokraround

Manually close popups of pickers

// Get the editor instance
          var editor = $("#editor").data("kendoEditor");

          // Close other dropdowns when clicking your custom tool
          $("#" + controlID).on("click", function () {
            var foreColor = editor.toolbar.element.find("input[data-command='foreColor']").data("kendoColorPicker");
            var backColor = editor.toolbar.element.find("input[data-command='backColor']").data("kendoColorPicker");

            foreColor.close();
            backColor.close();
          });

https://dojo.telerik.com/cGlmOHzu

Ticket ID: 1688602

Environment

jQuery: 2025.1.211 Kendo UI version: 2025.1.211 or newer Browser: [all]

kendo-bot avatar Jun 02 '25 07:06 kendo-bot