Skip to content

Commit

Permalink
fix(md-input): run updateService only..
Browse files Browse the repository at this point in the history
..if input has no focus. If an input have text and
you delete the text, the label get pulled down into
the input before focus is removed.
This also move an error message downward when using validateTrigger.change.
  • Loading branch information
Ullfis committed Aug 27, 2016
1 parent 547ddb3 commit e2d7b18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/input/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ export class MdInput {
}
mdValueChanged() {
this.updateService.update();
if (!$(this.input).is(':focus')) {
this.updateService.update();
}
if (this.mdTextArea) {
$(this.input).trigger('autoresize');
}
Expand Down

0 comments on commit e2d7b18

Please sign in to comment.