mirror of
https://github.com/flutter/flutter
synced 2024-08-27 03:50:33 +00:00
Enter a description of the change.
Docs: Fix the script in the example to actually clone the template contents, not the template element itself. Review URL: https://codereview.chromium.org/680673002
This commit is contained in:
parent
86cd8beee7
commit
3f008050a2
|
@ -14,7 +14,7 @@ SKY MODULE - radio button and radio button group
|
|||
module.exports.RadioElement = sky.registerElement('radio', class extends Element {
|
||||
constructor () {
|
||||
this.addEventListener('click', (event) => this.checked = true);
|
||||
this.createShadowTree().appendChild(module.document.findId('radio-shadow').cloneNode(true));
|
||||
this.createShadowTree().appendChild(module.document.findId('radio-shadow').content.cloneNode(true));
|
||||
}
|
||||
get checked () {
|
||||
return this.hasAttribute('checked');
|
||||
|
|
Loading…
Reference in a new issue