MCPcopy Create free account
hub / github.com/reactjs/react-modal / TestWebComponent

Class TestWebComponent

specs/Modal.helpers.spec.js:122–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 let wc;
121 let input;
122 class TestWebComponent extends HTMLElement {
123 constructor() {
124 super();
125 }
126
127 connectedCallback() {
128 this.attachShadow({
129 mode: "open"
130 });
131 this.style.display = "block";
132 this.style.width = "100px";
133 this.style.height = "25px";
134 }
135 }
136
137 const registerTestComponent = () => {
138 if (window.customElements.get("test-web-component")) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected