We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f5264a commit e6bbe4fCopy full SHA for e6bbe4f
src/index.js
@@ -5,7 +5,7 @@ export default function register(Component, tagName, propNames, options) {
5
const inst = Reflect.construct(HTMLElement, [], PreactElement);
6
inst._vdomComponent = Component;
7
inst._root =
8
- options && options.shadow ? inst.attachShadow({ mode: 'open' }) : inst;
+ options && options.shadow ? inst.attachShadow({ mode: options.mode || 'open' }) : inst;
9
return inst;
10
}
11
PreactElement.prototype = Object.create(HTMLElement.prototype);
0 commit comments