Skip to content

Conversation

@OlimpiaZurek
Copy link

Add preserveSpacesInLabel property and preserveSpace method to Picker.item in Dropdown (Web only)
In some cases (e.g. Expensify/App#16329) users want to keep whitespace in Picker on Web (same as iOS and Android).

As on the web, a drop-down list is implemented using the element and by default the HTML element merges consecutive spaces into one space and cannot be changed, I added a helper method to achieve this goal and an additional prop based on which the users decide if they want to keep the whitespace or not.

screen

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.

1 participant