Skip to content

changing variable via setTimeout worked at second blur event #370

Closed Answered by nobkd
lioutall asked this question in Q&A
Discussion options

You must be logged in to vote

I think the timeout breaks the update (probably because the internal update() is called before the timeout is done), so try doing one of the following:

hide() { setTimeout(() => this.update({show: false}), 200); }
// or
hide() { setTimeout(() => {this.show = false; this.update()}, 200); }

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lioutall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants