diff --git a/src/CustomElements.js b/src/CustomElements.js index dc8d15f..b299419 100644 --- a/src/CustomElements.js +++ b/src/CustomElements.js @@ -218,11 +218,11 @@ if (useNative) { implement(element, definition); // flag as upgraded element.__upgraded__ = true; + // lifecycle management + created(element); // there should never be a shadow root on element at this point // we require child nodes be upgraded before `created` scope.upgradeSubtree(element); - // lifecycle management - created(element); // OUTPUT return element; }