fix(module: table): fix filter not applied (#1594)

This commit is contained in:
anranruye 2021-06-08 00:04:12 +08:00 committed by GitHub
parent 840184fd51
commit 0577db8a5c

View File

@ -182,7 +182,7 @@ readonly RenderFragment<Column<TData>> FilterToolTipSorter = col =>
<Unbound>
<span @ref="context.Current" class="ant-table-filter-trigger-container @(col._filterOpened?" ant-table-filter-trigger-container-open":"")">
<span role="button" tabindex="-1" class="ant-dropdown-trigger ant-table-filter-trigger @(col._hasFilterSelected?"active":"")"
@attributes="@(new Dictionary<string, object>() { ["onclick"] = _callbackFactory.Create<MouseEventArgs>(col, () => col._filterOpened = !col._filterOpened )})">
@attributes="@(new Dictionary<string, object>() { ["onclick"] = _callbackFactory.Create<MouseEventArgs>(col, () => { if (col._filterOpened) col.FilterConfirm(); else col._filterOpened = true; }) })">
<Icon Type="filter" Theme="fill" />
</span>
</span>