mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-01 16:51:13 +00:00
Fix tippy on component mount. Fixes #509
This commit is contained in:
parent
ece262993a
commit
468db76802
5 changed files with 11 additions and 5 deletions
|
@ -133,7 +133,6 @@ export class Community extends Component<any, State> {
|
||||||
this.fetchCommunity();
|
this.fetchCommunity();
|
||||||
this.fetchData();
|
this.fetchData();
|
||||||
}
|
}
|
||||||
setupTippy();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fetchCommunity() {
|
fetchCommunity() {
|
||||||
|
@ -144,6 +143,10 @@ export class Community extends Component<any, State> {
|
||||||
WebSocketService.Instance.send(wsClient.getCommunity(form));
|
WebSocketService.Instance.send(wsClient.getCommunity(form));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
|
setupTippy();
|
||||||
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
saveScrollPosition(this.context);
|
saveScrollPosition(this.context);
|
||||||
this.subscription.unsubscribe();
|
this.subscription.unsubscribe();
|
||||||
|
|
|
@ -145,8 +145,6 @@ export class Home extends Component<any, HomeState> {
|
||||||
this.fetchTrendingCommunities();
|
this.fetchTrendingCommunities();
|
||||||
this.fetchData();
|
this.fetchData();
|
||||||
}
|
}
|
||||||
|
|
||||||
setupTippy();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fetchTrendingCommunities() {
|
fetchTrendingCommunities() {
|
||||||
|
@ -168,6 +166,7 @@ export class Home extends Component<any, HomeState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
WebSocketService.Instance.send(wsClient.communityJoin({ community_id: 0 }));
|
WebSocketService.Instance.send(wsClient.communityJoin({ community_id: 0 }));
|
||||||
|
setupTippy();
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
|
|
|
@ -42,7 +42,6 @@ export class PersonDetails extends Component<PersonDetailsProps, any> {
|
||||||
this.handlePageChange = this.handlePageChange.bind(this);
|
this.handlePageChange = this.handlePageChange.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO needed here?
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
setupTippy();
|
setupTippy();
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,7 +109,6 @@ export class Profile extends Component<any, ProfileState> {
|
||||||
this.fetchUserData();
|
this.fetchUserData();
|
||||||
}
|
}
|
||||||
|
|
||||||
setupTippy();
|
|
||||||
this.setPersonBlock();
|
this.setPersonBlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -188,6 +187,10 @@ export class Profile extends Component<any, ProfileState> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
|
setupTippy();
|
||||||
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
this.subscription.unsubscribe();
|
this.subscription.unsubscribe();
|
||||||
saveScrollPosition(this.context);
|
saveScrollPosition(this.context);
|
||||||
|
|
|
@ -130,7 +130,9 @@ export class Settings extends Component<any, SettingsState> {
|
||||||
this.subscription = wsSubscribe(this.parseMessage);
|
this.subscription = wsSubscribe(this.parseMessage);
|
||||||
|
|
||||||
this.setUserInfo();
|
this.setUserInfo();
|
||||||
|
}
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
setupTippy();
|
setupTippy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue