Skip to content

When the Form.Item verification rule is type: url, directly pasting the url (with multiple spaces at the end of the url) will cause serious jams #4966

@haotianheng

Description

@haotianheng
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.1.0

Environment

Vue3 Ts、Window10、Chrome最新版

Reproduction link

https://github.com/yiminghe/async-validator#type

Steps to reproduce

当Form.Item的校验规则的type为url时,直接粘贴末尾带有多个空格的url上去,会

What is expected?

粘贴末尾带有多个空格的url时不卡顿,但会检测到url不正确

What is actually happening?

粘贴末尾带有多个空格的url时严重卡顿,但等待10几秒钟之后不卡顿了也会检测到url不正确


复制粘贴url到Form.Item输入框上时

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions