This is a migrated thread and some comments may be shown as answers.

How can I override buttons in the Editor toolbar so they are not submit buttons

3 Answers 75 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 19 Mar 2019, 03:19 PM

When you add a KendoReact Editor component as a child of a Form component, the toolbar buttons submit the form. This is actually a defect in my opinion, so I filed a bug on it. The buttons are rendered as html button elements without a type attribute, which means they default to submit buttons.  I would still like to use this Editor, so until that is fixed is there currently a way of overriding how toolbar buttons are rendered?

Here's the bug I filed: https://github.com/telerik/kendo-react/issues/219

3 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 20 Mar 2019, 11:15 AM
Hello, John,

Thank you for reporting and logging the issue.

The team will start working on it.

As a current workaround a HOC can be used to add additional attributes to the tool:

https://stackblitz.com/edit/react-kmths6-ek3pos?file=app/main.js

Additionally, I updated your Telerik points for bringing this to our attention.

Regards,
Stefan
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
John
Top achievements
Rank 1
answered on 20 Mar 2019, 02:46 PM
Awesome, Thanks Stefan.  This seems like a viable workaround.
0
John
Top achievements
Rank 1
answered on 20 Mar 2019, 02:46 PM
Awesome, Thanks Stefan.  This seems like a viable workaround.
Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Answers by
Stefan
Telerik team
John
Top achievements
Rank 1
Share this question
or