Skip to content

Clicking scroll buttons submits the form containing the Chat #5849

@pepinho24

Description

@pepinho24

Bug report

When the Chat is located inside a <form> tag, clicking one of the scroll buttons of an attachments list will submit the form.
This is mostly noticed in RadChat for ASP.NET AJAX.
In AJAX this is solved with the code below but might not be the best solution in Kendo UI Chat.
https://github.com/telerik/kendo/blob/master/src/chat/view.js#L249

_scrollButtonClick: function (e) {
                // prevent form submission when Kendo UI Chat is inside a <form>
                e.originalEvent.preventDefault()

Reproduction of the problem

  1. Open https://dojo.telerik.com/@sspasova/ItamIWus
  2. Click the left or right arrow button in the Chat

Current behavior

The form is submitted.

Expected/desired behavior

The form is not submitted and the list is scrolled.

Environment

  • Kendo UI version: 2023.3.1114
  • Browser: [all

Metadata

Metadata

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions