material icon indicating copy to clipboard operation
material copied to clipboard

Cannot read property '$submitted' of undefined

Open depyronick opened this issue 10 years ago • 8 comments

TypeError: Cannot read property '$submitted' of undefined at b (angular-material.min.js:10) at Object.g (angular-material.min.js:10) at m.$digest (angular.js:16538) at m.$apply (angular.js:16810) at angular.js:18632 at e (angular.js:5793) at angular.js:6070

Is this a bug?

depyronick avatar Jan 27 '16 13:01 depyronick

AngularJS v1.5.0-rc.1

Angular Material 1.0.3

depyronick avatar Jan 27 '16 13:01 depyronick

I've got the same on AngularJS 1.3.15 / Angular Material 1.0.1 For me it seems to be caused by the required validator on input

kcazin avatar Jan 27 '16 15:01 kcazin

I'v got the same issue. Also for me seems the required validator, but only if there are at least two fields on the form. With Material 1.0.2 I don't see the error.

This codepen show my case: when you close the bottomSheet the error is shown in console

http://codepen.io/chiccomask/pen/XXqWmm

chiccomask avatar Jan 27 '16 15:01 chiccomask

Related to this? https://github.com/angular/material/issues/6807

If so this may have been fixed recently in https://github.com/angular/material/commit/34e027815055123caf572ca76734d2c0e8bf8275

alextreppass avatar Jan 27 '16 15:01 alextreppass

Upgrading to latest master (1.0.3-master-0918596) did the trick

kcazin avatar Jan 27 '16 15:01 kcazin

Looks exaclty the same issue. Thanks!

chiccomask avatar Jan 27 '16 15:01 chiccomask

Yeah, i updated angular material to master and seems it did the trick.

depyronick avatar Jan 27 '16 16:01 depyronick

So if this issue was just a problem of 1.0.3, you should close that issue. :)

devversion avatar Jan 27 '16 16:01 devversion