Closed GreLI closed 8 years ago
I believe, the only relevant solution currently is to add a note to docs that particular fields are required. See relevant issue #1576.
Why not to allow to add elem: 'switcher'
in content
?
It's a really weird API, when two different things do the same stuff. And it's getting weirder when you try to document such API (this is the reason we haven't documented content
field of the button
).
If
switcher
key is absent in BEMJSON, dropdown.bh.js fails on lines 13 and 44 with error messages like “Cannot read property "mix" of undefined”.