Skip to content

Commit 017c71c

Browse files
The getStyle graph function must return a copy of the style.
Co-authored-by: Alex Johnson <[email protected]>
1 parent 0811241 commit 017c71c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/dash-core-components/src/fragments/Graph.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ class PlotlyGraph extends Component {
389389
}
390390

391391
if (!style.height) {
392-
style.height = '100%';
392+
return Object.assign({height: '100%'}, style);
393393
}
394394

395395
return style;

0 commit comments

Comments
 (0)