Ghost/core/client/components/gh-blur-input.js

14 lines
316 B
JavaScript
Raw Normal View History

var BlurInput = 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 BlurInput;