From afc486b1b99ee19604228d955b39767b74af0d92 Mon Sep 17 00:00:00 2001 From: Gorzas Date: Thu, 13 Jul 2017 12:54:35 +0200 Subject: [PATCH] Update label on disabled inputs after updating value Close #622 --- addon/components/md-input.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/addon/components/md-input.js b/addon/components/md-input.js index fcca04e8..12ef25ce 100644 --- a/addon/components/md-input.js +++ b/addon/components/md-input.js @@ -8,6 +8,12 @@ export default MaterializeInputField.extend({ didInsertElement() { this._super(...arguments); // make sure the label moves when a value is bound. + this._setupLabel(); + }, + + didUpdateAttrs() { + this._super(...arguments); + this._setupLabel(); } });