Skip to content

下拉框在侧轴基线对齐的弹性盒子中选中选项后错位 #6461

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
saatana97 opened this issue Apr 14, 2023 · 3 comments
Closed
1 task done
Labels

Comments

@saatana97
Copy link

saatana97 commented Apr 14, 2023

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

Version

3.3.0-beta.4

Environment

win7,chrome 版本 112.0.5615.86(正式版本) (64 位),[email protected]

Reproduction link

Edit on CodeSandbox

Steps to reproduce

整个弹性盒,里面放个下拉框,和一个span当做标签,盒子侧轴方向设置基线对齐

What is expected?

盒子被撑大了,下拉框位置下移

What is actually happening?

盒子无变化,下拉框位置无变化

@saatana97
Copy link
Author

saatana97 commented Apr 14, 2023

下拉框在选中选项后子元素会多出来一个span标签成为第一个子元素,里面是option的label
这个span导致基线对齐时整个下拉框下移并撑大父容器
image

@saatana97 saatana97 changed the title ASelect will change position and make container large after pick option in flex container 下拉框在侧轴基线对齐的弹性盒子中选中选项后错位 Apr 14, 2023
@CCherry07
Copy link
Member

我来看看

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 Apr 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants