Skip to content

Commit 7a170ea

Browse files
authored
explicitly identifying button type in QuickGrid columnbase (#48277)
1 parent ccde043 commit 7a170ea

File tree

1 file changed

+3
-3
lines changed
  • src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/Columns

1 file changed

+3
-3
lines changed

src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/Columns/ColumnBase.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
{
2020
@if (ColumnOptions is not null && (Align != Align.Right && Align != Align.End))
2121
{
22-
<button class="col-options-button" @onclick="@(() => Grid.ShowColumnOptionsAsync(this))"></button>
22+
<button class="col-options-button" type="button" @onclick="@(() => Grid.ShowColumnOptionsAsync(this))"></button>
2323
}
2424

2525
if (Sortable.HasValue ? Sortable.Value : IsSortableByDefault())
2626
{
27-
<button class="col-title" @onclick="@(() => Grid.SortByColumnAsync(this))">
27+
<button class="col-title" type="button" @onclick="@(() => Grid.SortByColumnAsync(this))">
2828
<div class="col-title-text">@Title</div>
2929
<div class="sort-indicator" aria-hidden="true"></div>
3030
</button>
@@ -38,7 +38,7 @@
3838

3939
@if (ColumnOptions is not null && (Align == Align.Right || Align == Align.End))
4040
{
41-
<button class="col-options-button" @onclick="@(() => Grid.ShowColumnOptionsAsync(this))"></button>
41+
<button class="col-options-button" type="button" @onclick="@(() => Grid.ShowColumnOptionsAsync(this))"></button>
4242
}
4343
}
4444
}

0 commit comments

Comments
 (0)