This commit is contained in:
yumoqing 2026-01-28 13:26:04 +08:00
parent 3c3c1e1050
commit bd8d4faf18

View File

@ -543,7 +543,7 @@ bricks.Tooltip = class extends bricks.Text {
this.set_style('display', 'block');
bricks.relocate_by_eventpos(event, this);
if (this.auto_task){
this.auto_task.cancel();
clearTimeout(this.auto_task);
this.auto_task = null;
}
this.auto_task = schedule_once(this.hide.bind(this), 6);
@ -551,7 +551,7 @@ bricks.Tooltip = class extends bricks.Text {
hide(){
try {
if (this.auto_task){
this.auto_task.cancel();
clearTimeout(this.auto_task);
this.auto_task = null;
}
} catch(e){