Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Pattern validation with ngModel causes browser freeze on repeated input #12753

Closed
@sylvainpolletvillard

Description

@sylvainpolletvillard

I'm submitting a ... (check one with "x")

[X] bug report => search github for a similar issue or PR before submitting[ ] feature request[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

Having a text input bound with ngModel and a pattern validation, if you hold a letter key while focusing the input to enter a long string such as "aaaaaaaaaaaaa", after ~30 characters the browser freezes and does not respond anymore.

Expected behavior

Angular should prevent browser to freeze when spamming input on a field with complex validation.

Minimal reproduction of the problem with instructions

Seehttp://plnkr.co/edit/ydMZGGQOh62fGwbLh0Yg?p=preview

What is the motivation / use case for changing the behavior?

You don't want browser to freeze or crash because of Angular

Please tell us about your environment:

Windows 7 64 bit

  • Angular version: 2.1.2
  • Browser: Chrome 54
  • Language: all

  • Node (for AoT issues):node --version =

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp