Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

ngModelOptions doesn't work for textarea #7281

Closed
adampooler opened this issue Apr 28, 2014 · 1 comment
Closed

ngModelOptions doesn't work for textarea #7281

adampooler opened this issue Apr 28, 2014 · 1 comment

Comments

@adampooler
Copy link

ngModelOptions ignored for textarea elements.

Here's an example:
http://jsfiddle.net/tUCw3/

@shahata
Copy link
Contributor

shahata commented Apr 28, 2014

Nice. I'm on this, I understand why it happens.

@petebacondarwin petebacondarwin added this to the 1.3.0-beta.8 milestone May 4, 2014
@petebacondarwin petebacondarwin self-assigned this May 4, 2014
petebacondarwin pushed a commit to petebacondarwin/angular.js that referenced this issue May 4, 2014
since directives are sorted by priority and name and `ngModel` & `textarea` have the same priority and 'textarea'>'ngModel' (unlike 'input'), textarea in linked first. this is a problem since textarea expect ngModelController.$options to exist and it is created only when ngModel is linked. this is solved easily by moving the creation of $options to pre-link.

fixes angular#7281
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants