Skip to content

Commit

Permalink
fix[practice]disable auto-focus
Browse files Browse the repository at this point in the history
  • Loading branch information
serfend committed May 28, 2022
1 parent 23b6721 commit d6d8446
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/views/problems/Problem/ProblemAnalysis/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ export default {
watch: {
userAnswerResult: {
handler (val) {
setTimeout(() => {
const e = this.$refs.btn_confirm
e && e.$el.focus()
}, 2e2)
// setTimeout(() => {
// const e = this.$refs.btn_confirm
// e && e.$el.focus()
// }, 2e2)
}
}
},
Expand Down
1 change: 0 additions & 1 deletion src/views/problems/Problem/ProblemBlanking/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export default {
console.log('callback is set to', this.index)
document.addEventListener('keyup', this.keyInput)
this.focus_callback_set = true
this.onFocus({ type: 'el-input' })
return
} else if (this.focus_callback_set) {
console.log('callback remove from', this.index)
Expand Down

0 comments on commit d6d8446

Please sign in to comment.