Blazorise: problem when speed typing in autocomplete

Created on 30 Jul 2020  路  6Comments  路  Source: stsrki/Blazorise

I'm using autocomplete component which works fine on local machine, but it gets buggy on speed typing after deployment,
typed letters change place, sometimes letters even are deleted.

Most helpful comment

It's going to be fixed with #1179. I just need to add new features introduced for TextEdit, like ChangeTextOnKeyPress and DelayTextOnKeyPress.

All 6 comments

It's going to be fixed with #1179. I just need to add new features introduced for TextEdit, like ChangeTextOnKeyPress and DelayTextOnKeyPress.

This also happens in the normal TextEdit component, very awkward an sluggish behavior but only happens when 2 way databinding is used.

<TextEdit @bind-Text="@customFilterValue" Placeholder="Search" />

browser: edge, blazorise: 0.9.1.2, blazor: server
is this a known issue too?

@vip32 TextEdit is used inside of Autocomplete so that's why they're acting the same. The fix is available in 0.9.2-preview3 on MyGet feed.

In case you switch to preview this is how _fix_ is applied: <TextEdit @bind-Text="@value" DelayTextOnKeyPress="true" />

Can you apply this feature to the filter fields in DataGrid?

Not directly but maybe I could add additional parameters to the DataGridColumn. In the meantime you can use FilterTemplate

<DataGridColumn TItem="Employee" Field="@nameof( Employee.FirstName )" Caption="First Name" Validator="@CheckFirstName" Editable="true">
    <FilterTemplate>
        <TextEdit Placeholder="Search name" DelayTextOnKeyPress="true" TextChanged="@(v=>context.TriggerFilterChange(v))" />
    </FilterTemplate>
</DataGridColumn>

Thanks, that works!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stsrki picture stsrki  路  3Comments

smilyte picture smilyte  路  4Comments

john-cullen picture john-cullen  路  3Comments

brettwinters picture brettwinters  路  5Comments

imtrobin picture imtrobin  路  4Comments