This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
Markdown (and probably SyntaxHighlighter) default children
value needs update
#147
Labels
dash-type-bug
Something isn't working as intended
With dcc 0.15.4 and:
now creating
dcc.Markdown()
component without any children value, for an empty component that will be later filled with a callback crashes in React constructor:as
children
is not a string, but the defaultchildren
value that crashes on.join()
call (at least that is what browser console tells me):TypeError: Cannot read property 'join' of null
.I think that the default value for
dcc.Markdown.children
should be""
or empty list.Or if providing
children
value is required, then Python should catch components without it and raise an exception, as it is it was really hard to find the error.The text was updated successfully, but these errors were encountered: