Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicking on checkbox with @click-handler that impacts other checkbox will not check the clicked checkbox #12144

Closed
arnesten opened this issue Oct 10, 2024 · 2 comments · Fixed by #12146 · May be fixed by #12155
Closed

Clicking on checkbox with @click-handler that impacts other checkbox will not check the clicked checkbox #12144

arnesten opened this issue Oct 10, 2024 · 2 comments · Fixed by #12146 · May be fixed by #12155
Labels
has workaround A workaround has been found to avoid the problem regression scope: v-model

Comments

@arnesten
Copy link

arnesten commented Oct 10, 2024

Vue version

3.5.11

Link to minimal reproduction

https://play.vuejs.org/#eNqVU8FOwzAM/ZUoJ5CgExpcSjcB05DgAIhxjIS61tuypUmUpGNo6r/jJOtW0DSJU20/+/nZTrf0XutkXQNNaeag0iJ3MGSSkEzkUxDBRIdLXTsSHULct4YBo8UCitVUbRhtgfVlpUoQiM24sY7R3o7gMbietnfgzaZmSALpkWb/6GWhULJkNMZb/K4QvFjt4ZH3vKBuziRWxrY7ZQhmvc4qMlsYrl0QBxutjCMlzPJaOLKNlWXu8rPz1iPEgKuNPPiEhG2kxJkaLg7RKCwls1xYaMNNNJpdXgVuoUqbku3v6TpDdVvjvhbcJqEfGUTm27/U/tNgNOvtR6MX1FlknPF5srRK4nMInLh4VWkuwLxqx5W0jKKUyMNoLoT6eg6xzmi7Yx2JLy3eL0XjzYAFswZG95jLzRzwxXh4PHmBDdp7EC9dC8w+Ab6DVaL2GmPaQy1LlN3JC2qfKn9BLucfdrxxIG07lBcaFhPyGcV/YnRi9IPcfnId6phscIufazCeExfYT26Sqyva/ABwFwqe

Steps to reproduce

Click on checkbox with text "Second".

What is expected?

That the "First" checkbox is unchecked and that the "Second" is checked.

What is actually happening?

The "First" checkbox is unchecked, but the "Second" checkbox is still unchecked.

System Info

Chrome 129.0.6668.89. Ubuntu 22.04.

Any additional comments?

It works correctly in 3.4.38. But it stopped working in 3.5.0 and is not working in 3.5.11.

@jh-leong jh-leong added 🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. scope: v-model labels Oct 10, 2024
@edison1105 edison1105 added ❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. regression and removed 🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. labels Oct 10, 2024
@edison1105
Copy link
Member

a workaround

secondClick() {
  setTimeout(()=>{
    this.first = false;
  },0)
}

@edison1105 edison1105 added has workaround A workaround has been found to avoid the problem and removed ❗ p4-important Priority 4: this fixes bugs that violate documented behavior, or significantly improves perf. labels Oct 11, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.