Make it so that the custom input delegates focus
This commit is contained in:
parent
d433e6a51d
commit
5b5e74e085
2 changed files with 7 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* @param {HTMLElement} Base
|
||||
*/
|
||||
export function StyledShadowElement(Base) {
|
||||
export function StyledShadowElement(Base, shadowOptions = { mode: `open` }) {
|
||||
return class extends Base {
|
||||
/**
|
||||
* The path to the CSS that is loaded
|
||||
|
|
@ -33,7 +33,7 @@ export function StyledShadowElement(Base) {
|
|||
constructor() {
|
||||
super();
|
||||
|
||||
this._shadow = this.attachShadow({ mode: `open` });
|
||||
this._shadow = this.attachShadow(shadowOptions);
|
||||
this._style = document.createElement(`style`);
|
||||
this._shadow.appendChild(this._style);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue