color-js / elements

WIP
13 stars 1 forks source link

[color-slider] When it has `min` || `max` || `value`, the `<prop>change` event is fired too early #25

Closed DmitrySharabin closed 5 months ago

DmitrySharabin commented 6 months ago

Consequently, custom listeners defined with on<prop>change attributes are not executing on element initialization.

Testcase

<color-slider space="hsl"
              stops="red, yellow, lime, aqua, blue, magenta, red"
              min="-50" max="50" value="20"
              oncolorchange="this.nextElementSibling.textContent = this.color"></color-slider>
<output></output>
DmitrySharabin commented 5 months ago

Not an issue anymore.