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

Revert "refactor(components): [form-label-wrap] use getStyle method (… #14106

Merged
merged 1 commit into from
Aug 26, 2023

Conversation

btea
Copy link
Collaborator

@btea btea commented Aug 26, 2023

#13913)"

This reverts commit c6a6d9b.

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 296690c

Refactored form-label-wrap.tsx to use native CSS methods for label width calculation. This enhances the form component's performance and compatibility.

Related Issue

Fixes #14100.

Explanation of Changes

🤖 Generated by Copilot at 296690c

  • Replace getStyle function with window.getComputedStyle method for label width calculation (link). This improves accuracy and compatibility of the form label component.

@github-actions
Copy link

github-actions bot commented Aug 26, 2023

@github-actions github-actions bot added the CommitMessage::Qualified Qualified commit message label Aug 26, 2023
@github-actions
Copy link

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

@iamkun iamkun enabled auto-merge (squash) August 26, 2023 06:15
@iamkun iamkun merged commit 8c81272 into dev Aug 26, 2023
13 checks passed
@iamkun iamkun deleted the revert/form-item-label-13913 branch August 26, 2023 06:15
This was referenced Aug 26, 2023
laizuan pushed a commit to laizuan/element-plus that referenced this pull request Sep 5, 2023
element-plus#14106)

Revert "refactor(components): [form-label-wrap] use getStyle method (element-plus#13913)"

This reverts commit c6a6d9b.
consultation-applio pushed a commit to consultation-applio/element-plus that referenced this pull request Nov 10, 2023
element-plus#14106)

Revert "refactor(components): [form-label-wrap] use getStyle method (element-plus#13913)"

This reverts commit c6a6d9b.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CommitMessage::Qualified Qualified commit message
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Component] [form] label-width’s auto property lose efficacy in version 2.3.10, 2.3.9 is right.
2 participants