Uh oh!
There was an error while loading. Please reload this page.
Dont clone figure.layout - #905
Conversation
almarklein
commented
Dec 14, 2020
Mmm, there seems to be a problem with CI in general. |
alexcjohnson
commented
Dec 15, 2020
hmm, not sure what's going on with CI, I'll have to investigate. We're going to need to do more than just dropping the In principle we may need to save the original values of these attributes in |
Uh oh!
There was an error while loading. Please reload this page.
alexcjohnson
commented
Dec 15, 2020
The |
alexcjohnson
commented
Dec 15, 2020
Fixed the build process via plotly/dash-html-components#170 - now it's just routine linter errors 😏 |
almarklein
commented
Dec 16, 2020
Updated, and tests added. Only a linting issue with |
almarklein
commented
Dec 16, 2020
I also updated the code sample in the top post to do about the same thing as the test does. |
for this PR and the import fix
alexcjohnson
commented
Dec 16, 2020
eb82ae1 resulted from |
Uh oh!
There was an error while loading. Please reload this page.
almarklein
commented
Dec 17, 2020
Updated again. I also ran a little test with a layout that has |
almarklein
commented
Dec 18, 2020
The failing test looks like a glitch in another test. |
emmanuelle
commented
Dec 18, 2020
I restarted the CI and all looks good now. |
almarklein
commented
Dec 18, 2020
@alexcjohnson also added a test to check that original values are correctly restored. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
emmanuelle
commented
Jan 12, 2021
Hi, any chance to get this PR merged before the next Dash release? Pretty please :-) ? |
alexcjohnson
commented
Jan 12, 2021
Yes sorry, it's been waiting on me to play with it a bit, but we'll get it in for the next release. |
alexcjohnson
left a comment
There was a problem hiding this comment.
OK! @almarklein I was concerned about how this would work in various other cases including both mutations and brand new figures and alternating responsive and figure edits, so I expanded on your second test a bit. All works great! 💃
almarklein
commented
Jan 15, 2021
Thanks @alexcjohnson for wrapping this one up :) |
Fixes#879 (hopefully)
This small changes fixes the issue (for e.g. the example below). That said, I cannot oversee whether this potentially breaks other code. In theory, the tests will tell ;)
Example to test this: