Skip to content

Commit a0db65d

Browse files
committed
2.5.17
1 parent f514322 commit a0db65d

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-elastic",
3-
"version": "2.5.16",
3+
"version": "2.5.17",
44
"main": "elastic.js",
55
"ignore": [
66
"**/.*",

elastic.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,11 @@ angular.module('monospaced.elastic', [])
216216
if (scope.maxHeight && scope.maxHeight != maxHeight) {
217217
maxHeight = scope.maxHeight;
218218
}
219-
return ngModel ? ngModel.$modelValue : null;
219+
if (attrs.ngModel) {
220+
return ngModel.$modelValue;
221+
} else {
222+
return scope.$eval(attrs.thyModel);
223+
}
220224
}, function (newValue) {
221225
forceAdjust();
222226
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-elastic",
3-
"version": "2.5.16",
3+
"version": "2.5.17",
44
"description": "Elastic (autosize) textareas for AngularJS, without jQuery dependency.",
55
"keywords": [
66
"angular",

0 commit comments

Comments
 (0)