-
-
Notifications
You must be signed in to change notification settings - Fork 143
Conversation
Default is now null but tried 'untitled-graph' too - no luck so far, this renders an error when omitting id in Dash
Nice! I believe that we'll need the graph ID to be dynamic so that users can embed multiple graphs. There are a few places in the plot code that require unique IDs, like:
and
|
@chriddyp Yep, makes sense. So if the user defines more than one |
Yeah, I think that's what we'll have to do |
dash_core_components/metadata.json
Outdated
@@ -139,73 +139,6 @@ | |||
} | |||
} | |||
}, | |||
"src/components/Confirm.react.js": { |
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.
Why is this getting nuked?
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.
Looks like it was added here 0be4e4c
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.
There's no Confirm
component though - perhaps you triggered a build and had some uncommited code (like a src/components/Confirm.react.js
file perhaps) and released the previous version, and now when I'm building, the data is getting nuked.
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.
It was called Confirm
at first, but I renamed it to ConfirmDialog
.
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.
Yeah, so that's probably what happened.
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.
Looks good to me!
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.
@chriddyp Do you want to take a look at the Percy screenshot? |
Woops, sorry I missed this. In the future, feel free to go in there and approve them yourselves :) 💃 |
This sets the Graph's id prop to not be required, and defines a defaultProp value for it set to 'untitled-graph' so Plotly.js still works.