Skip to content

Multiple Select value was set to "" after resetFields method of Form called, only reproduced when not using useForm. #6978

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

Closed
1 task done
KaygNas opened this issue Sep 25, 2023 · 2 comments · Fixed by #6979
Assignees
Labels

Comments

@KaygNas
Copy link
Contributor

KaygNas commented Sep 25, 2023

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.20

Environment

Vue 3.2.45

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. Select "Zone one" and "Zone two" options
  2. Click "Reset" button

What is expected?

Value of Select component should be set to undefined or []

What is actually happening?

Value of Select component was be set to ""

@KaygNas
Copy link
Contributor Author

KaygNas commented Sep 25, 2023

Only appear when the initial value of region was set to undefined, no bug when the initial value is [], There is a workaround demo.

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants