Skip to content

IDropdownStyles not working, it gets overwritten #16107

Answered by JustSlone
Rafaelki asked this question in Q&A
Discussion options

You must be logged in to vote

Actually with dropdown since there is coordination between the dropdown and the callout, the callout width is controlled via the dropdownWidth prop.

See this line from Dropdown for reference

calloutWidth={dropdownWidth || (this._dropDown.current ? this._dropDown.current.clientWidth : 0)}

You can set the dropdownWidth prop on DropDown to "auto"

Here's an updated codePen

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@gyrevik
Comment options

Answer selected by JustSlone
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #16107 on December 05, 2020 18:09.