Skip to content

Conversation

@ali-hv
Copy link
Contributor

@ali-hv ali-hv commented Nov 16, 2025

Summary

This PR removes the truncate class from the default SELECT_CLASSES configuration. Using truncate on a native <select> applies overflow: hidden and white-space: nowrap, which prevents the browser from rendering the scroll bar inside the dropdown list.

What Was Happening

  • When the select menu contained many options, the dropdown would open but no scrollbar was shown.
  • This behavior came from the truncate utility (Tailwind), which is not compatible with native <select> elements.

Fix

  • Removed the truncate class from SELECT_CLASSES so the dropdown can render normally with scroll support.

Impact

  • Scroll bar now appears correctly when a select widget contains many items.
  • No visual regressions in the collapsed select display.

### Summary
This PR removes the `truncate` class from the default SELECT_CLASSES configuration.  
Using `truncate` on a native `<select>` applies `overflow: hidden` and `white-space: nowrap`, which prevents the browser from rendering the scroll bar inside the dropdown list.

### What Was Happening
- When the select menu contained many options, the dropdown would open but **no scrollbar was shown**.
- This behavior came from the `truncate` utility (Tailwind), which is not compatible with native `<select>` elements.

### Fix
- Removed the `truncate` class from SELECT_CLASSES so the dropdown can render normally with scroll support.

### Impact
- Scroll bar now appears correctly when a select widget contains many items.
- No visual regressions in the collapsed select display.
@lukasvinclav
Copy link
Contributor

Would you mind creating an issue first and answering all question there? I'm not sure what exactly is broken in current dropdown.

@ali-hv
Copy link
Contributor Author

ali-hv commented Nov 17, 2025

Would you mind creating an issue first and answering all question there? I'm not sure what exactly is broken in current dropdown.

I did:
#1690

@lukasvinclav
Copy link
Contributor

Thanks for PR. But just removing truncate will break other edge cases. I fixed the issue in different PR #1702

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants