select("locale", ["es", "en"], "en")

@ndelangen FYI
Found out the issue, fix is in #4586.
@diagramatics @ndelangen it still does not work on 4.0.0
I'm running into the same issue. I don't think this was actually fixed. :(
Just checked, turns out the PR isn't cherry picked in 4.0.0. @shilman do you mind revisiting this for us?
@danielg2002 @teddybradford @diagramatics, temporarily fixed it with https://github.com/ds300/patch-package
patches/@storybook/addon-knobs+4.0.0.patch:
patch-package
--- a/node_modules/@storybook/addon-knobs/dist/components/types/Select.js
+++ b/node_modules/@storybook/addon-knobs/dist/components/types/Select.js
@@ -21,7 +21,7 @@ var SelectType = function SelectType(_ref) {
var options = knob.options;
var entries = Array.isArray(options) ? options.reduce(function (acc, k) {
return Object.assign(acc, {
- k: k
+ [k]: k
});
}, {}) : options;
var selectedKey = Object.keys(entries).find(function (k) {
@diagramatics I'll get it into a release today.
Most helpful comment
Released: https://github.com/storybooks/storybook/releases/tag/v4.0.1