Skip to content

Commit

Permalink
Merge 75405b0 into 815bdd4
Browse files Browse the repository at this point in the history
  • Loading branch information
baiyaaaaa committed Oct 19, 2016
2 parents 815bdd4 + 75405b0 commit cb5898a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- 修复 Loading 关闭后有几率滚动失效的问题
- 修复 远程搜索的 Select 不能正确渲染默认初始值的问题
- 修复 Switch 的 width 属性无效的问题
- 修复 Input textarea 在动态赋值时 autosize 没有触发的问题

#### 非兼容性更新

Expand Down
4 changes: 3 additions & 1 deletion packages/input/src/input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,12 @@
watch: {
'value'(val, oldValue) {
this.currentValue = val;
this.resizeTextarea();
},
'currentValue'(val) {
this.$nextTick(_ => {
this.resizeTextarea();
});
this.$emit('input', val);
this.$emit('change', val);
this.dispatch('form-item', 'el.form.change', [val]);
Expand Down

0 comments on commit cb5898a

Please sign in to comment.