mirror of
https://github.com/flarum/core.git
synced 2025-08-06 08:27:42 +02:00
Run code to rebuild tooltip oncreate AND onupdate
This commit is contained in:
committed by
Franz Liedke
parent
571ed8d8e5
commit
d7ef260c54
@@ -34,7 +34,17 @@ export default class PostEdited extends Component {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
oncreate(vnode) {
|
||||||
|
super.oncreate(vnode);
|
||||||
|
|
||||||
|
this.rebuildTooltip();
|
||||||
|
}
|
||||||
|
|
||||||
onupdate() {
|
onupdate() {
|
||||||
|
this.rebuildTooltip();
|
||||||
|
}
|
||||||
|
|
||||||
|
rebuildTooltip() {
|
||||||
if (this.shouldUpdateTooltip) {
|
if (this.shouldUpdateTooltip) {
|
||||||
this.$().tooltip('destroy').tooltip();
|
this.$().tooltip('destroy').tooltip();
|
||||||
this.shouldUpdateTooltip = false;
|
this.shouldUpdateTooltip = false;
|
||||||
|
Reference in New Issue
Block a user