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

fix(components): [select] fix the logic of updating selected data #13374

Merged
merged 3 commits into from
Aug 23, 2023

Conversation

inottn
Copy link
Contributor

@inottn inottn commented Jun 27, 2023

Please make sure these boxes are checked before submitting your PR, thank you!

  • Make sure you follow contributing guide English | (中文 | Español | Français).
  • Make sure you are merging your commits to dev branch.
  • Add some descriptions and refer to relative issues for your PR.

Description

🤖 Generated by Copilot at 9b03904

This pull request improves the select component by adding a test case for options prop changes and preventing unwanted query changes for non-remote or non-filterable selects.

Related Issue

Fixes #13346

Explanation of Changes

🤖 Generated by Copilot at 9b03904

  • Prevent unnecessary queryChange calls when options prop changes (link)
  • Add test case for updating selected data when options prop changes (link)

@pull-request-triage
Copy link

👋 @inottn, thank you for contributing element-plus.

  • You can comment with /label Components:[component_name] to add a label for which component you are working on.
  • You may join our Discord for staying tuned.

@github-actions
Copy link

github-actions bot commented Jun 27, 2023

@github-actions
Copy link

Hello @inottn, thank you for contributing to element-plus, please see our guideline to see how to make contribution

@github-actions
Copy link

github-actions bot commented Jun 27, 2023

🧪 Playground Preview: https://element-plus.run/?pr=13374
Please comment the example via this playground if needed.

@jianxchen
Copy link

Excuse me, when will the fix be merged into the dev branch

@inottn
Copy link
Contributor Author

inottn commented Jul 26, 2023

@btea help review? thx.

@inottn inottn requested a review from btea July 27, 2023 10:49
@jianxchen
Copy link

@btea help review? thx.

不合了吗

@inottn
Copy link
Contributor Author

inottn commented Aug 23, 2023

@btea help review? thx.

不合了吗

It has been a long time since the first commit. Is there anything else I can do for the merge? Over time, it may be necessary to resolve conflicts, so I hope we can merge as soon as possible. @btea @ryuhangyeong

@tolking tolking merged commit 1211312 into element-plus:dev Aug 23, 2023
10 checks passed
@inottn inottn deleted the fix/select-13346 branch August 23, 2023 13:01
@element-bot element-bot mentioned this pull request Aug 25, 2023
3 tasks
laizuan pushed a commit to laizuan/element-plus that referenced this pull request Sep 5, 2023
…ement-plus#13374)

* fix(components): [select] fix the logic of updating selected data

* chore: improve judgment condition
consultation-applio pushed a commit to consultation-applio/element-plus that referenced this pull request Nov 10, 2023
…ement-plus#13374)

* fix(components): [select] fix the logic of updating selected data

* chore: improve judgment condition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Component] [select] select不回显默认值
4 participants