-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Children should never be undefined in JSON passed to dash-renderer; results in reducer "layout" error #27
Comments
Additional context, the results of returning @waralex It looks like we're not passing a default value for Comparing the Python, R, and Julia implementations of this component, the problem appears to be here: function html_br(; kwargs...)
available_props = Set(Symbol[:children, :id, :n_clicks, :n_clicks_timestamp, :key, :role, :accessKey, :className, :contentEditable, :contextMenu, :dir, :draggable, :hidden, :lang, :spellCheck, :style, :tabIndex, :title, :loading_state])
wild_props = Set(Symbol[Symbol("data-"), Symbol("aria-")])
wild_regs = r"^(?<prop>data-|aria-)"
result = Component("Br", "dash_html_components", Dict{Symbol, Any}(), available_props, Set(Symbol[Symbol("data-"), Symbol("aria-")])) If I'm reading this correctly, |
I'd also be happy to consider this a renderer bug - |
@alexcjohnson I think that's the general consensus between the three of us (@waralex, @Marc-Andre-Rivet and me) -- at best this renderer behaviour is idiosyncratic, and at worst it's a bug. But realistically there is still functionality to permit within Dash.jl, since |
Copying over my comment from Slack, just to have it all in one place:
@rpkyle said:
Me:
So it seems this is not a renderer bug, though where it's really coming from is still unclear. |
Fixed by #28. |
A simple test app with two
html_div
components declared and onehtml_br
in between them fails to render anything in the browser window:In the JavaScript console, the following error appears:

However, if you pass a blank space -- e.g.
" "
into thechildren
property, it works. The problem may appear for components with all default arguments passed, that are nested inside another component, though this hypothesis has not been extensively tested.The behaviour is reproducible if
html_br()
is substituted withhtml_div()
orhtml_p()
.@waralex @Marc-Andre-Rivet
The text was updated successfully, but these errors were encountered: