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

[Component] [checkbox-group] [Bug] when use cdn import element-plus under v6.0, checkboxgroup can't work normally #16596

Open
pyvadev opened this issue Apr 20, 2024 · 2 comments

Comments

@pyvadev
Copy link

pyvadev commented Apr 20, 2024

Bug Type: Component

Environment

  • Vue Version: 3.3.4
  • Element Plus Version: 2.3.12
  • Browser / OS: Chrome/124.0.0.0 Safari/537.36 / MacOS 14.4.1
  • Build Tool: CDN

Reproduction

Related Component

  • el-checkbox-group

Reproduction Link

Element Plus Playground

Steps to reproduce

Clike one of the checkbox.

What is Expected?

Checked a checkbox and ElCheckboxGroup @change handler work as expect, value will be the checked box value.

What is actually happening?

It checked all checkbox. The console output of the value of ElCheckboxGroup @change handler, list contain a undefined when checked, and is emtpy when unchecked.
If the 'v-model' variable of ElCheckboxGroup has default value, the output will be the default value and undefined when checked, be default value when unchecked.

Additional comments

This bug only occur when use cdn to import element-plus, when I dev in local use local npm package it will not occur.

This bug occur under the version v6.0, at least v2.0-v5.* all have this bug.

Although this bug not occur in v6.0+, but I notice the update notes do not mention this bug, don't know wheather occur in the future.

@makedopamine
Copy link
Contributor

makedopamine commented Apr 20, 2024

Could you provide a minimal reproduction with codesandbox or something? Since the bug only occurs in CDN version, playground can't reproduce the bug.

@pyvadev
Copy link
Author

pyvadev commented Apr 21, 2024

@makedopamine Can be reproduce with the Element Plus Playground I mentioned. This playground can't save the version information, so switch to the corresponding version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants