storybookjs / addon-knobs

Storybook addon prop editor component
MIT License
12 stars 17 forks source link

fix(addon-knobs): Knob values not properly deserialized from the URL #38

Open mctrafik opened 3 years ago

mctrafik commented 3 years ago

Description

Fixes https://github.com/storybookjs/addon-knobs/issues/1

NOTE: In this PR I primarily focused on the 'Select' knob as that's the one mentioned in the bug. I tried to fix the other ones, too, but didn't focus too deeply on them.

Tested

Added unit tests for serialization/deserialization Manually verified that copying a link and pasting it populates complex values onload.