Skip to content

Commit bf09a9e

Browse files
committed
null
1 parent fb09317 commit bf09a9e

12 files changed

Lines changed: 554 additions & 495 deletions

docs/guide.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ export default class guide extends component {
9898

9999
radioComponent = () => html`
100100
<div>${this.radioShared}</div>
101-
<input type="radio" name="radio" checked=${this.radioShared === this.radioOne} oninput=${() => this.radioShared = 'one'} />
102-
<input type="radio" name="radio" checked=${this.radioShared === this.radioTwo} oninput=${() => this.radioShared = 'two'} />
101+
<input type="radio" name="radio" ${this.radioShared === this.radioOne ? 'checked' : ''} oninput=${() => this.radioShared = 'one'} />
102+
<input type="radio" name="radio" ${this.radioShared === this.radioTwo ? 'checked' : ''} oninput=${() => this.radioShared = 'two'} />
103103
`;
104104
radioCode = highlight(this.radioComponent.toString());
105105

@@ -119,7 +119,7 @@ export default class guide extends component {
119119
<div>${this.fruit}</div>
120120
<select value=${this.fruit} oninput=${(e) => this.fruit = e.target.value}>
121121
${this.fruits.map(fruit => html`
122-
<option value=${fruit} selected=${this.fruit === fruit}>${fruit}</option>
122+
<option value=${fruit} ${this.fruit === fruit ? 'selected' : ''}>${fruit}</option>
123123
`)}
124124
</select>
125125
`;
@@ -129,7 +129,7 @@ export default class guide extends component {
129129
<div>${this.car}</div>
130130
<select oninput=${e => this.car = Array.from(e.target.selectedOptions).map(o => o.value)} multiple>
131131
${this.cars.map(car => html`
132-
<option value=${car} selected=${this.car.includes(car)}>${car}</option>
132+
<option value=${car} ${this.car.includes(car) ? 'selected' : ''}>${car}</option>
133133
`)}
134134
</select>
135135
`;

docs/x-element.js

Lines changed: 102 additions & 100 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/x-element.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@
2727
"pro": "pro",
2828
"src": "src"
2929
},
30-
"version": "8.2.0"
30+
"version": null
3131
}

0 commit comments

Comments
 (0)