Skip to content

Commit

Permalink
fix node replaceChild error
Browse files Browse the repository at this point in the history
  • Loading branch information
studentIvan committed Aug 14, 2018
1 parent b9c7a77 commit d15a82b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vdom/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ export function renderComponent(component, renderMode, mountAll, isChild) {
if (initialBase && base!==initialBase && inst!==initialChildComponent) {
let baseParent = initialBase.parentNode;
if (baseParent && base!==baseParent) {
if (typeof base === 'undefined') { return; }
baseParent.replaceChild(base, initialBase);

if (!toUnmount) {
Expand Down

0 comments on commit d15a82b

Please sign in to comment.