Skip to content

Commit

Permalink
Swap setImmediate for requestAnimationFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksellen committed Oct 4, 2023
1 parent 4344186 commit d000307
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -20,6 +20,8 @@ Please document your changes in this format:
```

## [Unreleased]
### Fixed
- replace use of setImmediate with requestAnimationFrame @nicksellen

## [12.0.1] - 2023-09-12
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/utils/components/MarkdownInput.vue
Expand Up @@ -138,7 +138,7 @@ export default {
// It loses focus when you click the mention menu without this
const input = this.$refs.input
if (!input) return
setImmediate(() => {
requestAnimationFrame(() => {
input.focus()
})
},
Expand Down

0 comments on commit d000307

Please sign in to comment.