Description
The snackbar inside the grid template renders its action button without a type attribute:
|
<button igxButton (click)="triggerAction()"> |
|
{{ actionText }} |
|
</button> |
If the grid is placed inside a form, this button becomes the form's default button. Pressing Enter in any text input inside the form (e.g. the quick-filter row, filterMode="quickFilter") triggers implicit submission.
Framework
Angular
Angular Version
22.1
Ignite UI for Angular Version
22.1.3
Component / Area
Snackbar
Browser
Edge
Operating System
No response
Command Not Working
Steps to Reproduce
- Wrap a form around a grid
- Open the quick filter of any column, type a value, press Enter.
Actual Result
Site will reload.
Expected Result
No form submission should be triggered.
Reproduction URL
https://stackblitz.com/edit/agtrkbmj
Attachments
No response
Description
The snackbar inside the grid template renders its action button without a type attribute:
igniteui-angular/projects/igniteui-angular/snackbar/src/snackbar/snackbar.component.html
Lines 9 to 11 in ebb34dc
If the grid is placed inside a form, this button becomes the form's default button. Pressing Enter in any text input inside the form (e.g. the quick-filter row, filterMode="quickFilter") triggers implicit submission.
Framework
Angular
Angular Version
22.1
Ignite UI for Angular Version
22.1.3
Component / Area
Snackbar
Browser
Edge
Operating System
No response
Command Not Working
Steps to Reproduce
Actual Result
Site will reload.
Expected Result
No form submission should be triggered.
Reproduction URL
https://stackblitz.com/edit/agtrkbmj
Attachments
No response