This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 144
Allow parent_className and parent_style attributes on dcc.Loading components #840
Merged
Merged
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
647a44e
Allow for className on parent of completed loading children, add pare…
wbrgss 7875c2e
(suggestion) avoid unnecessary mergeRight call in ternary eval
wbrgss a6f4fb2
Add parent_className prop and only apply className to Spinner
wbrgss ac07ec8
Test new loading style attributes
wbrgss 5493917
black
wbrgss 2460926
Loading component graph test
wbrgss 8daac2a
Prop description
wbrgss b0eba74
extra comma
wbrgss d5cee96
remove print statements
wbrgss 458bbf4
fix integration tests by removing explicit keyword args
wbrgss 82aaab1
update CHANGELOG
wbrgss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the original behavior, modified in #740 which introduced the regression, the
className
was either applied tothis.props.children
div parent, otherwise (at least, ifthis.props.children
wasn't anObject
orFunction
, for some reason. If it was, noclassName
would be applied. See below for these three conditions.)I'm attempting to mimic this behaviour here. Ideally this would be two different props, in the pattern of
style
and the new (in this PR)parent_style
, but in order to fix the regression and have current apps working without breaking changes I think we need to replicate the old behaviour here.This was the previous render return value:
dash-core-components/src/components/Loading.react.js
Lines 40 to 73 in aa4fce7