Index: polymer_0.5.4/bower_components/paper-input/paper-input.html |
diff --git a/polymer_0.5.0/bower_components/paper-input/paper-input.html b/polymer_0.5.4/bower_components/paper-input/paper-input.html |
similarity index 89% |
copy from polymer_0.5.0/bower_components/paper-input/paper-input.html |
copy to polymer_0.5.4/bower_components/paper-input/paper-input.html |
index 330d35c9242ef609e8ca398d3f49332ed4a04313..44f7150db2ba3c4375a926da69eeb158587c7aa8 100644 |
--- a/polymer_0.5.0/bower_components/paper-input/paper-input.html |
+++ b/polymer_0.5.4/bower_components/paper-input/paper-input.html |
@@ -61,7 +61,7 @@ Use `paper-input-decorator` if you would like to implement validation. |
</style> |
<paper-input-decorator id="decorator" label="{{label}}" floatingLabel="{{floatingLabel}}" value="{{value}}" disabled?="{{disabled}}"> |
- <input is="core-input" value="{{value}}" committedValue="{{committedValue}}" on-change="{{changeAction}}" disabled?="{{disabled}}"> |
+ <input is="core-input" id="input" value="{{value}}" committedValue="{{committedValue}}" on-change="{{changeAction}}" disabled?="{{disabled}}"> |
</paper-input-decorator> |
</template> |
@@ -102,16 +102,16 @@ Use `paper-input-decorator` if you would like to implement validation. |
/** |
* The current value of the input. |
- * |
+ * |
* @attribute value |
* @type String |
* @default '' |
*/ |
value: '', |
- |
+ |
/** |
* The most recently committed value of the input. |
- * |
+ * |
* @attribute committedValue |
* @type String |
* @default '' |
@@ -120,15 +120,22 @@ Use `paper-input-decorator` if you would like to implement validation. |
}, |
+ /** |
+ * Focuses the `input`. |
+ * |
+ * @method focus |
+ */ |
+ focus: function() { |
+ this.$.input.focus(); |
+ }, |
+ |
valueChanged: function() { |
this.$.decorator.updateLabelVisibility(this.value); |
}, |
changeAction: function(e) { |
- if (!window.ShadowDOMPolyfill) { |
- // re-fire event that does not bubble across shadow roots |
- this.fire('change', null, this); |
- } |
+ // re-fire event that does not bubble across shadow roots |
+ this.fire('change', null, this); |
} |
}); |