Skip to content

Missing type="button" on snackbar action button #17638

Description

@Timmeeeey

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

  1. Wrap a form around a grid
  2. 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions