DEV: Upgrades to Ember 3.10 (#7871)

Co-Authored-By: majakomel <maja.komel@gmail.com>
This commit is contained in:
Joffrey JAFFEUX
2019-07-16 12:45:15 +02:00
committed by GitHub
parent e2fa5704e9
commit b3eb67976d
78 changed files with 332 additions and 263 deletions

View File

@ -19,7 +19,9 @@ export default Ember.Component.extend({
},
focusPermalink() {
Ember.run.schedule("afterRender", () => this.$(".permalink-url").focus());
Ember.run.schedule("afterRender", () =>
this.element.querySelector(".permalink-url").focus()
);
},
actions: {
@ -67,7 +69,7 @@ export default Ember.Component.extend({
this._super(...arguments);
Ember.run.schedule("afterRender", () => {
this.$(".external-url").keydown(e => {
$(this.element.querySelector(".external-url")).keydown(e => {
// enter key
if (e.keyCode === 13) {
this.send("submit");