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

[Select] Fix min-height fallback check #847

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

atomiks
Copy link
Contributor

@atomiks atomiks commented Nov 21, 2024

When the natural scroll height of the select popup is less than the default min-height for fallback (100px), it always falls back. This changes the check to only fallback if its natural height exceeds the min-height (which can also be customized already) and is less than it.

ref: #843 (comment)

@atomiks atomiks added the component: select This is the name of the generic UI component, not the React module! label Nov 21, 2024
@mui-bot
Copy link

mui-bot commented Nov 21, 2024

Netlify deploy preview

https://deploy-preview-847--base-ui.netlify.app/

Generated by 🚫 dangerJS against e3ed15a

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Nov 21, 2024
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: select This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants