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): [cascader] initialHeight #10517
Conversation
👋 @Simon-He95, thank you for contributing element-plus. |
Hello @Simon-He95, thank you for contributing to element-plus, please see our guideline to see how to make contribution |
🧪 Playground Preview: https://element-plus.run/?pr=10517 |
const getInitialHeight = () => { | ||
if (props.size === 'large') return 38 | ||
if (props.size === 'small') return 22 | ||
return 30 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
His original logic also has inputInner.offsetHeight
inputInitialHeight = inputInner.offsetHeight || initialHeight
cssVar isn't it an another form hardcode
Just personal feeling, there is more burden to find dom to inject style, I don't think it seems to have any advantages over the current method
Hi, @Simon-He95 This bug was introduced by #10214, I created a PR to fix it. |
OK |
Please make sure these boxes are checked before submitting your PR, thank you!
dev
branch.fixed: #10516