mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 00:23:49 +00:00
tippy: Remove redundant tippy instance destruction.
When `onShow()` returns `false`, the tippy instance is automatically destroyed. This commit removes manual destruction calls in such cases.
This commit is contained in:
committed by
Tim Abbott
parent
7a52313f85
commit
d0e45b99ef
@@ -527,7 +527,6 @@ export function initialize(): void {
|
||||
);
|
||||
return undefined;
|
||||
}
|
||||
instance.destroy();
|
||||
return false;
|
||||
},
|
||||
appendTo: () => document.body,
|
||||
@@ -884,7 +883,6 @@ export function initialize(): void {
|
||||
instance.setContent(content);
|
||||
return undefined;
|
||||
}
|
||||
instance.destroy();
|
||||
return false;
|
||||
},
|
||||
appendTo: () => document.body,
|
||||
@@ -903,7 +901,6 @@ export function initialize(): void {
|
||||
instance.setContent(ui_util.parse_html(error_message));
|
||||
return undefined;
|
||||
}
|
||||
instance.destroy();
|
||||
return false;
|
||||
},
|
||||
appendTo: () => document.body,
|
||||
@@ -949,7 +946,6 @@ export function initialize(): void {
|
||||
$(instance.popper).find(".tippy-content").css("display", "block");
|
||||
return undefined;
|
||||
}
|
||||
instance.destroy();
|
||||
return false;
|
||||
},
|
||||
appendTo: () => document.body,
|
||||
|
||||
Reference in New Issue
Block a user