Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Don't set innerHTML in demo unless it's empty #64

Merged
merged 1 commit into from
Sep 20, 2016

Conversation

aweary
Copy link
Contributor

@aweary aweary commented Sep 20, 2016

Doing content.innerHTML = content.innerHTML can break some things in React, at least in Chrome (for example, event listeners). It might break other things, so might as well just avoid doing it.

Doing `content.innerHTML = content.innerHTML` can break some things in React, at least in Chrome (for example, event listeners). It might break other things, so might as well just avoid doing it.
@coveralls
Copy link

coveralls commented Sep 20, 2016

Coverage Status

Coverage remained the same at 96.296% when pulling c10b28b on Aweary:fix-demo-innerhtml into 1a8e826 on FormidableLabs:master.

@tptee
Copy link
Contributor

tptee commented Sep 20, 2016

Thought we removed all of these, nice catch!

@tptee tptee merged commit a8a0276 into FormidableLabs:master Sep 20, 2016
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.

None yet

3 participants