Material: Dirty Multiple mdSelect

Created on 21 Oct 2016  路  4Comments  路  Source: angular/material

Actual Behavior:

  • Forms with mdSelect and the mdSelect has multiple option is set to true, angular sees the form as dirty.
  • multiple flag should not effect initial form state

CodePen (or steps to reproduce the issue): *

  • http://codepen.io/bbyrne/pen/Kgboyv?editors=1010
  • Details: When page is first loaded, the state of the form is automatically set to dirty. If the select is loaded with multiple false, the state is pristine.

Angular Versions: *

  • Angular Version: <= 1.5.x
  • Angular Material Version: 1.1.1

Additional Information:

  • Browser Type: chrome
  • Browser Version: 53.x
  • OS: macOS Sierra
  • Stack Traces: n/a

Most helpful comment

For others that might run into this issue:
One workaround is to wait for mdSelect's multiple directive to load and then manually reset the form's state to pristine.

All 4 comments

This issue is closed as it falls in the 'deprecated' category. We deprecate issues for one or more of the following reasons:

  • Issue has a reasonable workaround
  • Issue doesn't have a demo or reproducible case available
  • Issue is real, but fixing it is risky for users who depend on existing behavior
  • Issue is real, but only affects a very small use case
  • Issue is real, but would require significant work to fix, and is less urgent than other needs.

Pull Requests are welcomed to resolve this issue. But note that not all community PRs will be merged into master. Pull Requests with large changes or large scope impacts will probably be rejected [due to stability risks to existing users].

How are the use cases measured? I hate to take the time to report a bug just to have it immediately deemed as too small to address.

For others that might run into this issue:
One workaround is to wait for mdSelect's multiple directive to load and then manually reset the form's state to pristine.

@BAByrne, I ran into the same issue. Can you post the workaround snippet?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

epelc picture epelc  路  3Comments

PeerInfinity picture PeerInfinity  路  3Comments

WebTechnolog picture WebTechnolog  路  3Comments

achaussende picture achaussende  路  3Comments

buzybee83 picture buzybee83  路  3Comments