Completed
Last Updated: 13 Sep 2021 11:00 by ADMIN
Release 2021.R3
Laurent
Created on: 31 May 2021 08:44
Category: Editor
Type: Bug Report
0
When the Editor is in a form and the Enter key is pressed the first button in the Editor`s toolbar is selected

Bug report

When the Editor is in a <form> that also has inputs and the Enter key is pressed in the input fields, the first button in the Editor`s toolbar is selected.

Reproduction of the problem

  1. Open the Dojo example
  2. Click in one of the inputs and press Enter

Current behavior

The 'Bold' button is selected

Expected/desired behavior

The buttons in the Editor should not be selected when pressing Enter key in the external inputs.

Regression introduced with Kendo 2020.2.513

Environment

  • Kendo UI version: 2021.2.511
  • Browser: [all ]
2 comments
ADMIN
Neli
Posted on: 08 Jun 2021 09:07

Hello,

Thank you for sharing an appropriate workaround for the problem in question. I am sure it will be helpful to the other users until the bug is being fixed. 

I have prepared the Dojo example linked here to demonstrate the suggested workaround. 

Regards,
Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Valery
Posted on: 01 Jun 2021 11:34

Hi!

I faced this problem too.

This happens because the editor buttons don't have the type="button" attribute.
I added this code and fixed the problem:

    $('button:not([type])', editor.toolbar.element).each(function () {
        $(this).prop('type', 'button');
    });