16 lines
290 B
JavaScript
16 lines
290 B
JavaScript
import Component from "@ember/component";
|
|
import { schedule } from "@ember/runloop";
|
|
export default Component.extend({
|
|
showInput: false,
|
|
|
|
click() {
|
|
this.onClick();
|
|
|
|
schedule("afterRender", () => {
|
|
$(this.element).find("input").focus();
|
|
});
|
|
|
|
return false;
|
|
},
|
|
});
|