Describe the bug
Using @storybook/addon-knobs in a storybook created with React and experiencing performance issues, especially when editing text or number. Here is a simple example of a story that I used:
storiesOf('Components', module)
.addDecorator(withKnobs)
.add('with editable text', () =>
<div>{text('Text', 'Some text')}</div>
)
To Reproduce
Steps to reproduce the behavior:
Just go to this example storybook built in React, go to the Knobs tab, and edit the "optional" text:
https://storybooks-official.netlify.com/?path=/story/addons-knobs-withknobs--dynamic-knobs
When you start doing a mix of typing and erasing text, some of your text disappears or previously written text is suddenly added.
This storybook was the first example given for Storybook 5.0 found on the main storybook website:
https://storybook.js.org/docs/basics/live-examples/
Expected behavior
Edit the text without having some text removed or added while typing.
System:
Facing the exact same issue.
@sanbpark94 & @ruudyroon Which version are you using?
Looks like I need to release a stable version with this fix: https://github.com/storybooks/storybook/pull/6022
@sangbpark94 @ruudyroon Would you mind trying out the latest 5.1-alpha?
I'll release the fix on latest later today.
Just gave v5.1.0-alpha.6 a test and it looks like the bug is resolved!
Thanks for testing it out @sangbpark94!
It seems all is well. Closed.
Most helpful comment
Looks like I need to release a stable version with this fix: https://github.com/storybooks/storybook/pull/6022
@sangbpark94 @ruudyroon Would you mind trying out the latest 5.1-alpha?
I'll release the fix on
latestlater today.