angular/angular

Possibility to add multiple updateOn events

Open

#20,371 创建于 2017年11月12日

在 GitHub 查看
 (10 评论) (27 反应) (0 负责人)TypeScript (100,110 star) (27,214 fork)batch import
area: formsfeaturefeature: under considerationfreq2: mediumopen for contributions

描述

[x] Feature request

It would be nice to add support for multiple updateOn: events. e.g updateOn: "blur submit".

There is scenario where single "blur" is not enough.

For example:

  1. we have simple form with 2 fields and one submit button
  2. user enters value for the first field and navigates to the second one
  3. user enters value for the second field and submit form by pressing enter key

In my example, the form will be submitted with empty value in the second filed.

贡献者指南