Documentation Update - React UI Fabric Dropdown Control
Not really sure where I should file this but can selectedKey and defaultSelectedKey be added to the documentation for the React Dropdown Control: https://developer.microsoft.com/en-us/fabric#/components/dropdown#Implementation They seem to be missing from the Optional Members section despite having examples of it in the code; Lost a little bit of time on this.
Never filed one of these before so apologies if this is in the wrong area.
Thanks.
Hey @duffysp! I do see defaultSelectedKeys and selectedKeys documented in the Implementation section you linked
Is it possible that you were also seeing blank spaces in the properties table when loading the page in your browser, as mentioned in the issue here?
Hi Natalie, thanks for getting back.
Although defaultSelectedKeys and selectedKeys (used for multi-select dropdowns) are on the documentation, defaultSelectedKey and selectedKey (used in single choice dropdowns) are both missing.
EG:
Example:

Hope this helps, Thanks.
Ah I see, thank you for clarifying! We definitely want those documented!
Luckily, this should actually be fixed pretty soon with the work I've been doing to re-vamp the documentation (tracked here). It looks like these props, and others, are missing because our current documentation doesn't show what an interface "extends". Those props are coming from ISelectableDroppableTextProps, which IDropdownProps extends. Our new documentation should make this inheritance more obvious and also link to ISelectableDroppableTextProps.
Thanks again for bringing this up. I'll link this issue in the "Re-do Implementation Section" of the issue I liked above to make sure it's tracked.
:tada:This issue was addressed in #8844, which has now been successfully released as @uifabric/[email protected].:tada:
Handy links:
:tada:This issue was addressed in #8844, which has now been successfully released as @uifabric/[email protected].:tada:
Handy links:
:tada:This issue was addressed in #8844, which has now been successfully released as @uifabric/[email protected].:tada:
Handy links:
:tada:This issue was addressed in #8844, which has now been successfully released as [email protected].:tada:
Handy links: