Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

mdDialog and form: Closing with $invalid form cause error thrown into dev console #6892

@tniezurawski

Description

@tniezurawski

Hey guys,

I've prepared plunker with the situation:
http://plnkr.co/edit/NIoepepoRn4ifC6yHhpp?p=preview

To be more specific md-input or md-input-container is throwing that error. Basically every inside the form.

Description from my plunker:
Look at dev console. If the form inside the dialog is invalid you will notice an error thrown out in dev console.

Interesting cases:

  • Open dialog, click "cancel" - you will notice an error in dev console
  • Open dialog, type "First Name", click "cancel" - no error (because form is valid)
  • Open dialog, type "First Name", click "submit" - no error (because form is valid and submitted)

Thanks to stacktrace it should be easy to find the reason of this bug.

-- used versions:
Angular: 1.4.9
Angular-Material: 1.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions