Skip to content

bug: Selects have variable width when placed inside container which leads to layout shifting when switching between options #4310

@fng3r

Description

@fng3r

Reproduction URL (Required)

https://play.tailwindcss.com/Mqe5kM8zpd

What version of daisyUI are you using?

v5.5.5

Which browsers are you seeing the problem on?

Chrome, Edge

Describe your issue

Width of select element depends on current selected option when select is placed inside container without fixed length so when you switch between options it would shrink/expand to match width of the selected option. OS native selects doesn't have this issue since they always have fxied width which matches width of options dropdown

20251125-0723-43.3268075.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions