-
<input :if="show" @blur="hide"> <script> constructor(data) { this.show = true; } hide() { setTimeout(() => {this.show = false}, 200); } </script>ubuntu 24 |
Beta Was this translation helpful? Give feedback.
Answered by
nobkd
Sep 18, 2024
Replies: 1 comment
-
I think the timeout breaks the update (probably because the internal hide() { setTimeout(() => this.update({show: false}), 200); }
// or
hide() { setTimeout(() => {this.show = false; this.update()}, 200); } |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lioutall
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: