You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pickers currently allow for a custom width using the menuWidth prop see docs
We want to allow this option in ComboBox and AutoComplete. It should always default to the width of the input, as it does now, however if the prop menuWidth is set, use that instead.
Note: menuWidth needs to be >= width of the input. If the prop is < the input, default to the min-width and ignore the prop.
By the way, just to make sure I understood everything correctly, by AutoComplete you mean SearchAutocomplete under the pickers category in React Spectrum, right? I'm asking this because I don't see it under the pickers category in current docs, but I DO see it (tagged as alpha) when I run yarn start:docs on main branch.
Provide a general summary of the feature here
Pickers currently allow for a custom width using the
menuWidth
prop see docsWe want to allow this option in ComboBox and AutoComplete. It should always default to the width of the input, as it does now, however if the prop
menuWidth
is set, use that instead.Note: menuWidth needs to be >= width of the input. If the prop is < the input, default to the min-width and ignore the prop.
🤔 Expected Behavior?
Allow the popover width to be customizable.
😯 Current Behavior
No option to control this
💁 Possible Solution
Similar to
react-spectrum/packages/@react-spectrum/picker/src/Picker.tsx
Lines 137 to 140 in 5dac45c
🔦 Context
Use case of combobox and autocomplete where the content of the options needs more room to display. Truncation might not always be the right answer.
💻 Examples
🧢 Your Company/Team
Adobe/Sign
🕷 Tracking Issue
No response
The text was updated successfully, but these errors were encountered: