mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
9a08ff3216
closes #3038 - Adds new gh-focus-input component - Uses new component in editor
7 lines
182 B
JavaScript
7 lines
182 B
JavaScript
var FocusInput = Ember.TextField.extend({
|
|
becomeFocused: function () {
|
|
this.$().val(this.$().val()).focus();
|
|
}.on('didInsertElement')
|
|
});
|
|
|
|
export default FocusInput;
|