mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08: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
93d67ce41c
commit
5981995300
@ -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…
x
Reference in New Issue
Block a user