Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
igxButton changes Enter key behavior
posted

Hello,

I have a reactive form and a disabled submit button.

The button without igxButton directive, pressing Enter key in the text box does not submit the form.

<form [formGroup]>
  <input type="text" />
  <button type="submit" [disabled]="true">Submit</button>
</form>

The button with igxButton directive, pressing Enter key submit the form.

<form [formGroup]>
  <input type="text" />
  <button igxButton type="submit" [disabled]="true">Submit</button>
</form>

I expect same behavior with/without igxButton directive.

What should I to do?

Environment:

Angular 7.2

IgniteUI Angular 7.3.18

Parents Reply Children
No Data