Skip to content

Commit

Permalink
fix focus title of new question
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
  • Loading branch information
Chartman123 committed Nov 8, 2023
1 parent eb7e954 commit f6db01f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mixins/QuestionMixin.js
Expand Up @@ -290,9 +290,9 @@ export default {
focus() {
this.$el.scrollIntoView({ behavior: 'smooth' })
this.$nextTick(() => {
const title = this.$el.querySelector('.question__header-title')
const title = this.$el.querySelector('.question__header__title__text__input')
if (title) {
title.select()
title.focus()
}
})
},
Expand Down

0 comments on commit f6db01f

Please sign in to comment.