-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
ComboBox: onRenderContainer and onRenderList need the default onRenderItem function #3050
Comments
@christiango What do you think? We were thinking instead of just passing the ComboBox's props to onRenderList to pass at least |
@jspurlin would be the best person to answer that, but it sounds reasonable to me. |
Yeah, sounds reasonable, but if this change is made that callback will no longer be an |
Yes, of course. We should follow the "onRender resolution logic". For the |
onRenderItem also needs to be passed some state about the item, so that I can mark it as selected in a custom implementation |
@cschleiden
Describe the issue:
The onRenderContainer and onRenderList properties on the ComboBox are not particularly helpful because they are not passed the default render function for onRenderItem.
As an example, if I wanted to render the ComboBox list in the virtualized Fabric list, I have the following problems:
It would be nice if the onRenderList function was passed the default render for the list as well as the default render functions for all of the components in the tree (onRenderItem, onRenderOption). That would solve the above two issues and make the onRenderList prop more useful.
The text was updated successfully, but these errors were encountered: