Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SelectArrayInput to respect {options: {labelWidth}} and not override it #6341

Closed
wdjunaidi opened this issue Jun 9, 2021 · 0 comments · Fixed by #6465
Closed

SelectArrayInput to respect {options: {labelWidth}} and not override it #6341

wdjunaidi opened this issue Jun 9, 2021 · 0 comments · Fixed by #6465

Comments

@wdjunaidi
Copy link

Is your feature request related to a problem? Please describe.
SelectArrayInput sometime shows a narrow drop-down which squeeze the label on initial render. Current implementation only adjust the size of the Select based on selection items width on opening up the Select component.

Currently it pass own its own labelWidth prop to the Select component.

Describe the solution you'd like
If {options: {labelWidth}} props is provided, to respect that as the initial labelWidth instead of the calculated one.

Additional context
Alternative solution: It checks the size of the labelText and calculates the labelWidth.

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

Successfully merging a pull request may close this issue.

2 participants