Fix tippy on component mount. Fixes #509 (#511)

This commit is contained in:
Dessalines 2021-11-25 12:40:48 -05:00 committed by GitHub
parent ece262993a
commit 324682b154
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 5 deletions

View file

@ -133,7 +133,6 @@ export class Community extends Component<any, State> {
this.fetchCommunity();
this.fetchData();
}
setupTippy();
}
fetchCommunity() {
@ -144,6 +143,10 @@ export class Community extends Component<any, State> {
WebSocketService.Instance.send(wsClient.getCommunity(form));
}
componentDidMount() {
setupTippy();
}
componentWillUnmount() {
saveScrollPosition(this.context);
this.subscription.unsubscribe();

View file

@ -145,8 +145,6 @@ export class Home extends Component<any, HomeState> {
this.fetchTrendingCommunities();
this.fetchData();
}
setupTippy();
}
fetchTrendingCommunities() {
@ -168,6 +166,7 @@ export class Home extends Component<any, HomeState> {
}
WebSocketService.Instance.send(wsClient.communityJoin({ community_id: 0 }));
setupTippy();
}
componentWillUnmount() {

View file

@ -42,7 +42,6 @@ export class PersonDetails extends Component<PersonDetailsProps, any> {
this.handlePageChange = this.handlePageChange.bind(this);
}
// TODO needed here?
componentDidMount() {
setupTippy();
}

View file

@ -109,7 +109,6 @@ export class Profile extends Component<any, ProfileState> {
this.fetchUserData();
}
setupTippy();
this.setPersonBlock();
}
@ -188,6 +187,10 @@ export class Profile extends Component<any, ProfileState> {
}
}
componentDidMount() {
setupTippy();
}
componentWillUnmount() {
this.subscription.unsubscribe();
saveScrollPosition(this.context);

View file

@ -130,7 +130,9 @@ export class Settings extends Component<any, SettingsState> {
this.subscription = wsSubscribe(this.parseMessage);
this.setUserInfo();
}
componentDidMount() {
setupTippy();
}