<details>
tag @toggle triggers when :open changes
#6696
Answered
by
LinusBorg
matvejs16
asked this question in
Help/Questions
-
Vue version3.2.39 Link to minimal reproductionSteps to reproduce
What is expected?Open attribute have to be changed on both and "toggle" method only triggers on clicked element. What is actually happening?Clicking on element cause a infinite @toggle event loop. System InfoSystem:
OS: Linux 5.13 Ubuntu 20.04.4 LTS (Focal Fossa)
CPU: (12) x64 Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
Memory: 35.11 GB / 62.68 GB
Container: Yes
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 17.9.0 - /usr/bin/node
npm: 8.19.1 - /usr/bin/npm
Browsers:
Chrome: 104.0.5112.79
Firefox: 104.0
npmPackages:
vue: ^3.2.39 => 3.2.39 Any additional comments?No response |
Beta Was this translation helpful? Give feedback.
Answered by
LinusBorg
Sep 19, 2022
Replies: 1 comment
-
The toggle event will necessarily trigger on both, because when one opens, the other closes - and both of these changes trigger a This is not a Vue bug, So I'll turn this into a discussion thread. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
matvejs16
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The toggle event will necessarily trigger on both, because when one opens, the other closes - and both of these changes trigger a
toggle
event.This is not a Vue bug, So I'll turn this into a discussion thread.