Skip to content

Commit 66bb5d3

Browse files
committed
don't override document.title if set to None
This allows users to override `document.title` during runtime with a clientside callback or a special component (plotly/dash-core-components#833)
1 parent 1c92d1a commit 66bb5d3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

dash-renderer/src/components/core/DocumentTitle.react.js

-3
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@ class DocumentTitle extends Component {
77
super(props);
88
const {update_title} = props.config;
99
this.state = {
10-
initialTitle: document.title,
1110
update_title,
1211
};
1312
}
1413

1514
UNSAFE_componentWillReceiveProps(props) {
1615
if (this.state.update_title && props.isLoading) {
1716
document.title = this.state.update_title;
18-
} else {
19-
document.title = this.state.initialTitle;
2017
}
2118
}
2219

0 commit comments

Comments
 (0)