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

Readonly fix for _wrapperRef in componentDidMount #314

Closed
wants to merge 1 commit into from
Closed

Readonly fix for _wrapperRef in componentDidMount #314

wants to merge 1 commit into from

Conversation

joeljeffery
Copy link
Contributor

Q A
Bug fix? [X]
New feature? [ ]
New sample? [ ]
Related issues? fixes #287

What's in this Pull Request?

There's a tiny bug in componentDidMount in RichText.tsx.

The bug causes the RichText control not to render in view mode.

image

_wrapperRef only gets defined in edit mode; so the whole contents of componentDidMount should be only executed if we're in edit mode.

image

@msftclas
Copy link

msftclas commented May 25, 2019

CLA assistant check
All CLA requirements met.

@codecov-io
Copy link

Codecov Report

Merging #314 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #314   +/-   ##
=======================================
  Coverage   72.84%   72.84%           
=======================================
  Files          17       17           
  Lines         766      766           
  Branches      148      148           
=======================================
  Hits          558      558           
  Misses        161      161           
  Partials       47       47

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 31bb2a0...3abb200. Read the comment docs.

estruyf added a commit that referenced this pull request Jul 9, 2019
@estruyf estruyf added this to the 1.14.0 milestone Jul 9, 2019
@estruyf
Copy link
Member

estruyf commented Jul 9, 2019

Thanks @joeljeffery for this change. I manually added it, as there were a lot of formatting changes applied in this PR. This will be available in version 1.14.0.

@estruyf estruyf closed this Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RichText view mode trouble
4 participants