Skip to content

When placeholder text wraps on multiple lines padding is not respected #4130

@zakkor

Description

@zakkor

Here's an example:

https://codesandbox.io/s/react-select-v3-sandbox-lc9wg

For the second select on the bottom where the placeholder text wraps on 2 lines, I would have expected the select to keep the same padding as the select above, but instead the text crams into the same available space which looks bad. It's because the placeholder is absolutely positioned so the parent container doesn't care about how much space it takes up, and it can't be fixed with margins or padding.

Any idea how to go about fixing this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-author-responseIssues or PRs waiting for more information from the authorissue/reviewedIssue has recently been reviewed (mid-2020)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions