Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicking scroll buttons submits the form containing the Chat #5849

Closed
pepinho24 opened this issue Jun 12, 2020 · 0 comments
Closed

Clicking scroll buttons submits the form containing the Chat #5849

pepinho24 opened this issue Jun 12, 2020 · 0 comments
Assignees
Labels
Bug C: Chat FP: Completed Sync status with associated Feedback Item jQuery Next Release Item that will be included in the next official release SEV: Low
Milestone

Comments

@pepinho24
Copy link
Contributor

pepinho24 commented Jun 12, 2020

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
@Iankodj Iankodj added the jQuery label Jun 12, 2020
@kendo-bot kendo-bot added the FP: Unplanned Sync status with associated Feedback Item label Jun 12, 2020
@antonmironovv antonmironovv self-assigned this Nov 19, 2024
@Dimitar-Goshev Dimitar-Goshev self-assigned this Dec 12, 2024
@github-actions github-actions bot added FP: Completed Sync status with associated Feedback Item and removed FP: Unplanned Sync status with associated Feedback Item labels Dec 12, 2024
@Dimitar-Goshev Dimitar-Goshev added this to the 2025 Q1 (Feb) milestone Dec 12, 2024
@Dimitar-Goshev Dimitar-Goshev added the Next Release Item that will be included in the next official release label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug C: Chat FP: Completed Sync status with associated Feedback Item jQuery Next Release Item that will be included in the next official release SEV: Low
Projects
None yet
Development

No branches or pull requests

7 participants