Bug
on matInput when you press enter(keyup.enter)="myFunction(), it should NOT calls click method on matPrefix
method (keyup.enter)="myFunction() on matInput first calling method on matPrefix, then method on input.
https://stackblitz.com/edit/angular-wxpesf?file=app%2Finput-prefix-suffix-example.ts
Material 6.0.0, all Browsers
Isn't that the default behavior of html forms? Any button inside a form that doesn't explicitly have type="button" will trigger the form submission.
Most helpful comment
Isn't that the default behavior of html forms? Any button inside a form that doesn't explicitly have
type="button"will trigger the form submission.