diff --git a/index.html b/index.html index 65aff97..ca9d1b4 100644 --- a/index.html +++ b/index.html @@ -258,7 +258,7 @@

6.a URL, history, WC defaults, and ^sel-all

Current hash:

- +

WC default value prop:

WC custom event detail:

@@ -487,7 +487,7 @@

Asserts

get value() { return this._value } set value(v) { this._value = +v || 0; this.shadowRoot.querySelector('output').textContent = '' + this._value } connectedCallback() { - this.shadowRoot.querySelector('button').onclick = () => this.dispatchEvent(new CustomEvent('step-picked', { detail: { step: this._value + 1 } })) + this.shadowRoot.querySelector('button').onclick = () => { this.value = this._value + 1; this.dispatchEvent(new CustomEvent('step-picked', { detail: { step: this._value } })) } this.value = this._value } })