Skip to content
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

[Textarea] Add back defensive branch logic #12406

Merged
merged 3 commits into from
Aug 4, 2018

Conversation

kanzelm3
Copy link
Contributor

@kanzelm3 kanzelm3 commented Aug 4, 2018

Fixes shallow rendering test failures by adding back the defensive branch logic that was removed in #12238, along with a comment this time.

Closes #12247

kanzelm3 and others added 3 commits August 3, 2018 21:04
Removes `disableLifecycleMethods` option from shallow render test to demonstrate the test failures that occur when that option is not set.
Fixes shallow rendering test failures by adding the defensive branch logic back, along with a comment.
@oliviertassinari oliviertassinari added new feature New feature or request component: text field This is the name of the generic UI component, not the React module! labels Aug 4, 2018
@oliviertassinari
Copy link
Member

It makes me sad to have to merge changes like this. But anyway, let's work around the "broken" shallow method behavior.

@oliviertassinari oliviertassinari merged commit 093c13e into mui:master Aug 4, 2018
@oliviertassinari
Copy link
Member

@kanzelm3 It's a great first pull request on Material-UI 👌🏻. Thank you for giving it a shot!

@kanzelm3
Copy link
Contributor Author

kanzelm3 commented Aug 6, 2018

@oliviertassinari thanks!

@JeremyGrieshop
Copy link

Could this defensive guard fix a similar Jest error I see in Tabs?

TypeError: Cannot read property 'scrollWidth' of null

@oliviertassinari
Copy link
Member

@cobbs-totem Sure, if you want to work on it, I have no objection with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: text field This is the name of the generic UI component, not the React module! new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants