gka/palettes

UI stops updating with some settings

Opened this issue · 3 comments

Don't ask me how I ended up with these settings but they end up locking the UI somehow (you can click, but nothing updates), requiring a refresh on a clean URL:

https://gka.github.io/palettes/#/9|s|ffffe0,f8dbbf,eeb89f,e2957f,d47162,c44b45,b2182b|ffffe0,ff005e,93003a|0|1

https://gka.github.io/palettes/#/9|s|ffffff,222222,225555,221199,118844,114499,111133|ffffe0,ff005e,93003a|1|1

You must copy and paste the URLs to keep the exact character encoding intact.

Reproduced in Firefox and Chromium

Same if I try to copy the following colors from my text editor into Chromium or Opera:

#000000,#800026,#bd0026,#e31a1c,#fc4e2a,#fd8d3c,#feb24c,#fed976,#ffeda0

Console says

Uncaught (in promise) TypeError: Cannot set property 'scale' of undefined
    at Function.g.bezier (bundle.js:1)
    at Object.t.$$.update (bundle.js:1)
    at A (bundle.js:1)
    at U (bundle.js:1)

It happens once one adds a sixth color.