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): [time-picker] input elements with default id in range #16808

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

xuyimingwork
Copy link

fix time-picker type range input elements without default id value

closed #16802

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.

Copy link

👋 @xuyimingwork, seems like this is your first time contribution to element-plus.

  • Please make sure that you have read our guidelines and code of conduct before making a contribution.
  • 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.

@pull-request-triage pull-request-triage bot added 1st contribution Their very first contribution Needs Review labels May 10, 2024
Copy link

github-actions bot commented May 10, 2024

Copy link

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

@xuyimingwork xuyimingwork force-pushed the fix_time-picker-range-miss-input-id branch 2 times, most recently from 27f0c2f to 6c2a104 Compare May 10, 2024 10:20
@xuyimingwork
Copy link
Author

xuyimingwork commented May 10, 2024

In previous version, I change input to el-input, with style and some function change, it actually worked.
But may cause breaking change for some users relay on certain html architecture.

Directly using useFormItemInputId in picker.vue may cause some problem,
since we only need two input id when picker type is range.

So, I change to use a component to provide range input id info.

@xuyimingwork
Copy link
Author

Complete test cases for this

@xuyimingwork xuyimingwork force-pushed the fix_time-picker-range-miss-input-id branch from 8effe92 to 1bdf495 Compare May 11, 2024 06:18
@github-actions github-actions bot added the CommitMessage::Qualified Qualified commit message label May 12, 2024
Copy link

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

fix time-picker type range input elements without default id value

closed element-plus#16802
add input id check for time-picker in range

adjust non range test cases to right place

closed element-plus#16802
@xuyimingwork xuyimingwork force-pushed the fix_time-picker-range-miss-input-id branch from 1bdf495 to b758d1c Compare May 13, 2024 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Component] [date-picker] el-date-picker使用 type="daterange"时缺少name或id
1 participant