Skip to content

[bug]: Text overflow on ComboboxTrigger with long selected item #8157

@luan-coelho

Description

@luan-coelho

Describe the bug

Description:
When selecting an item with a long label in the Combobox/Select, the text overflows the trigger button and breaks the layout.

Expected behavior:
The selected text must not extend beyond the trigger.

Actual behavior:
The text overflows the trigger area.

Representation

Image Image

Affected component/components

Combobox

How to reproduce

  1. Create a Combobox/Select with fixed width.
  2. Add an option with a long text.
  3. Select that option.
  4. The text overflows the trigger button.

Codesandbox/StackBlitz link

No response

Logs

System Info

OS: Manjaro Linux
Browser: Google Chrome

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions