From bd8d4faf18d648c05b1ce6870a67d2839058173d Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 28 Jan 2026 13:26:04 +0800 Subject: [PATCH] bugfix --- bricks/widget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bricks/widget.js b/bricks/widget.js index c3bd319..6c62fed 100644 --- a/bricks/widget.js +++ b/bricks/widget.js @@ -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){