mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
18 lines
307 B
JavaScript
18 lines
307 B
JavaScript
import { schedule } from "@ember/runloop";
|
|
import Component from "@ember/component";
|
|
export default Component.extend({
|
|
showInput: false,
|
|
|
|
click() {
|
|
this.onClick();
|
|
|
|
schedule("afterRender", () => {
|
|
$(this.element)
|
|
.find("input")
|
|
.focus();
|
|
});
|
|
|
|
return false;
|
|
}
|
|
});
|