Color Picker - Dropdown button is missing type="button" and acts as a submit button

1 Answer 40 Views
ColorPicker
Augusto
Top achievements
Rank 2
Augusto asked on 19 Jan 2022, 11:21 PM

Hi,

When clicking the dropdown button that shows the gradient view, it submits the form that contains it.

That's because that button is missing the attribute "type" with value "button".

This can be easily verified by going to Color Picker and inspecting the button.

I'm using "@progress/kendo-angular-inputs": "^8.0.0".

Regards.

1 Answer, 1 is accepted

Sort by
1
Accepted
Preslava
Telerik team
answered on 24 Jan 2022, 07:06 AM

Hi Augusto,

Indeed, the missing type `button` on the ColorPicker button is the reason why it submits the form.

I have logged an issue in our public repository. Its progress could be tracked here:

https://github.com/telerik/kendo-angular/issues/3550

In the meantime, the following workaround can be used.

https://stackblitz.com/edit/angular-gcykjw?file=app/app.component.ts

Also, I am updating your Telerik points, as a token of our gratitude for informing us of this issue.

I hope this helps.

Regards,
Preslava
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.

Tags
ColorPicker
Asked by
Augusto
Top achievements
Rank 2
Answers by
Preslava
Telerik team
Share this question
or