Skip to content

[Bug]: TextInput component freeze when pasting large chunk of text using control+v #250

@LittleLittleCloud

Description

@LittleLittleCloud

Description

Can be reproduced by following razor component code.

@namespace LoginForm.Components
@using RazorConsole.Components
<p>press enter to clean</p>
<TextInput @bind-Value="@_inputValue" Expand Placeholder="Use control V to copy large chunk of text and freeze the UI" //>
<TextButton Content="Clean" OnClick="() => _inputValue = string.Empty" />
<TextButton Content="Another Clean" OnClick="() => _inputValue = string.Empty" />
@code {
    private string _inputValue = string.Empty;
}

Steps to Reproduce

run the code snippet and use control + v to paste text chunks with mulitple times, the TextInput freeze after paste multiple times.

NOTE
The UI still render and respond to input like tab, it's just TextInput that freeze.

Expected Behavior

No freeze

Actual Behavior

freeze

Environment

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions