Index: third_party/polymer/v0_8/components-chromium/paper-input/paper-input-error-extracted.js |
diff --git a/third_party/polymer/v0_8/components-chromium/paper-input/paper-input-error-extracted.js b/third_party/polymer/v0_8/components-chromium/paper-input/paper-input-error-extracted.js |
index e447df14180c8bf82204844d9d621ea318e86d5b..4cea279fc190f7c021694eb52a29c0c8a200a273 100644 |
--- a/third_party/polymer/v0_8/components-chromium/paper-input/paper-input-error-extracted.js |
+++ b/third_party/polymer/v0_8/components-chromium/paper-input/paper-input-error-extracted.js |
@@ -6,27 +6,29 @@ |
is: 'paper-input-error', |
- enableCustomStyleProperties: true, |
+ behaviors: [ |
+ Polymer.PaperInputAddonBehavior |
+ ], |
hostAttributes: { |
- 'add-on': '', |
'role': 'alert' |
}, |
properties: { |
/** |
- * Set to true to show the error. |
+ * True if the error is showing. |
*/ |
invalid: { |
+ readOnly: true, |
reflectToAttribute: true, |
type: Boolean |
} |
}, |
- attached: function() { |
- this.fire('addon-attached'); |
+ update: function(state) { |
+ this._setInvalid(state.invalid); |
} |
}) |