Skip to content

Contextual Menu: Moved the creation of Splitbutton containers into the constructor#4495

Merged
christiango merged 2 commits intomicrosoft:masterfrom
chang47:chiechan/fixCreationOfSplitButtonContainer
Apr 9, 2018
Merged

Contextual Menu: Moved the creation of Splitbutton containers into the constructor#4495
christiango merged 2 commits intomicrosoft:masterfrom
chang47:chiechan/fixCreationOfSplitButtonContainer

Conversation

@chang47
Copy link
Copy Markdown
Contributor

@chang47 chang47 commented Apr 9, 2018

Problem:
It doesn't make sense to initialize the split button container in componentDidMount, especially if it's being used in the ref callback during the render.

Solution:
Moved the initialization to be in the constructor where it should be.

@chang47 chang47 requested a review from joschect as a code owner April 9, 2018 17:40
@chang47
Copy link
Copy Markdown
Contributor Author

chang47 commented Apr 9, 2018

@christiango @jspurlin

@christiango christiango merged commit 2a01833 into microsoft:master Apr 9, 2018
@microsoft microsoft locked as resolved and limited conversation to collaborators Aug 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants