mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
fix title update on fast drawer change
This commit is contained in:
parent
885513d96a
commit
d0407d8557
1 changed files with 4 additions and 4 deletions
|
|
@ -30,10 +30,6 @@ export class ListDetailsDrawer extends React.Component<RouteComponentProps & Pro
|
|||
};
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
document.title = this.props.list.name + " | " + this.state.baseDocumentTitle
|
||||
}
|
||||
|
||||
render() {
|
||||
return <Drawer
|
||||
visible={true}
|
||||
|
|
@ -108,6 +104,10 @@ export class ListDetailsDrawer extends React.Component<RouteComponentProps & Pro
|
|||
</Drawer>
|
||||
}
|
||||
|
||||
componentDidUpdate() {
|
||||
document.title = this.props.list.name + " | " + this.state.baseDocumentTitle
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
document.title = this.state.baseDocumentTitle
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue