Lack of button types in header of QuickGrid #45216
Labels
area-blazor
Includes: Blazor, Razor Components
bug
This issue describes a behavior which is not expected - a bug.
feature-blazor-quickgrid
Milestone
Is there an existing issue for this?
Describe the bug
Hi
As you know, the default type of a button is
submit
when the type is not specified in the html. When we nest QuickGrid into a form, it submits the form after clicking a button in the header template. Because these buttons don't have the type attribute:https://github.com/aspnet/AspLabs/blob/a7080f692f4c43f1ab5450460ec0746d35a298c4/src/QuickGrid/src/Microsoft.AspNetCore.Components.QuickGrid/Columns/ColumnBase.razor#L109
It should has
type
attributes like this:Expected Behavior
The buttons in the default header template should have type attribute with value of
button
, so it doesn't submit the parent form.Steps To Reproduce
Place QuickGrid into a form, then click filter button or column header button to sort.
Exceptions (if any)
No response
.NET Version
dotnet 7
Anything else?
No response
The text was updated successfully, but these errors were encountered: