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.

md-input-container: Textarea problems with model initialization when element not visible on view load #1202

@Splaktar

Description

@Splaktar

Overview of the Issue:
There are some issues with updating the model for textareas contained in md-input-containers. The view model is probably not getting updated since the view isn't visible upon initialization of the page.

We've seen this same thing a lot with different libraries since updating to AngularJS 1.3.x. Here's a similar issue with angular-bootstrap-switch (frapontillo/angular-bootstrap-switch#52). We've also seen it with ui-select2.

We were able to solve both issues using $intervals that just sit and wait for the view to become visible and then initialize the model properly. But this seems like a horrible hack, so we're hoping to hear about a better fix for this.

Angular Material Version: master, 0.7.0-rc2, 0.7.0-rc3
Browsers and Operating System: Chrome 39 and 42
Reproduce the Error: http://plnkr.co/edit/cV2xejsabJIhM70IC6Zg?p=preview
Related Issues: #559 #565

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions