Open
Description
Describe the bug
Only the first change to a text or number field (probably other types as well) registers and causes the component to update. It seems to be caused by there being a single set
event (for which there is a listener) and no listeners for the subsequent change
events.
To Reproduce
Steps to reproduce the behavior:
- Add a string knob to any component
- See it render on the storybook
- Change the value
- See it update. The console will say something about
storybookjs/knobs/set
- Change the value again
- Assert there has been no change/rerender. The console will say something about
storybookjs/knobs/change
for each subsequent change
Expected behavior
The console should rerender
Screenshots
This screenshot shows there are 0 listeners registered for the change event:
Code snippets
<ConversationSummary
mostRecentMessage={text('Most recent message', "hey, there, is it me you're looking for?")}
numberOfUnreadMessages={number('Unread messages', 2)}
})}
/>
System:
npx -p @storybook/cli@next sb info
just hangs and never gets past this output:
Environment Info:
My manual way:
$ jq .dependencies package.json | egrep 'react|storybook' | pbcopy; pbpaste
"react": "^16.11.0",
"react-addons-deep-compare": "0.0.1",
"react-autosuggest": "^9.4.3",
"react-dom": "^16.11.0",
"react-idle-timer": "^4.2.11",
"react-json-view": "^1.19.1",
"react-jss": "^8.6.1",
"react-redux": "^7.1.1",
"react-router": "^5.1.2",
"react-router-dom": "^5.1.2",
"tcomb-react": "^0.9.3",
$ jq .devDependencies package.json | egrep 'react|storybook' | pbcopy; pbpaste
"@babel/plugin-transform-react-jsx": "^7.3.0",
"@storybook/addon-actions": "^5.2.5",
"@storybook/addon-knobs": "^5.2.5",
"@storybook/addon-links": "^5.2.5",
"@storybook/react": "^5.2.5",
"@storybook/ui": "^5.2.5",
"@testing-library/react": "^9.3.0",
"enzyme-adapter-react-16": "^1.15.1",
"eslint-plugin-react": "^7.16.0",
Additional context
Reverting @storybook/*
to v5.1.9 will fix the issue.