Ghost/core/client/components/gh-blur-text-field.js
2014-05-28 15:26:16 -04:00

14 lines
324 B
JavaScript

var BlurTextField = Ember.TextField.extend({
selectOnClick: false,
click: function (event) {
if (this.get('selectOnClick')) {
event.currentTarget.select();
}
},
focusOut: function () {
this.sendAction('action', this.get('value'));
}
});
export default BlurTextField;