- From: Lukas Oppermann <notifications@github.com>
- Date: Thu, 20 Oct 2016 10:53:22 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Thursday, 20 October 2016 17:53:51 UTC
Hey,
so currently this does not work in `chrome`. I am wondering if this is as per spec or not.
I am getting the label and the checkbox. Wrapping a label around the custom element lets me activate the checkbox, but clicking on the label within the custom element does not do anything. Is this correct?
```javascript
constructor() {
super();
// Attach a shadow root to the element.
let shadowRoot = this.attachShadow({mode: 'open'});
shadowRoot.innerHTML = `
<label class="checkbox"><slot></slot></label>
`
}
connectedCallback() {
var checkbox = document.createElement('input');
checkbox.type = 'checkbox';
this.appendChild(checkbox);
}
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/591
Received on Thursday, 20 October 2016 17:53:51 UTC