From d4f7335cfe2ee82336606cf5516b6fa1f4444464 Mon Sep 17 00:00:00 2001 From: sunhao Date: Tue, 28 May 2024 14:29:48 +0800 Subject: [PATCH] * kanban: optimize UI of kanban links. --- lib/kanban/src/component/kanban.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/kanban/src/component/kanban.tsx b/lib/kanban/src/component/kanban.tsx index 5326a50101..aea83eca4f 100644 --- a/lib/kanban/src/component/kanban.tsx +++ b/lib/kanban/src/component/kanban.tsx @@ -708,13 +708,14 @@ export class Kanban

{ - const info = this._getElementInfo(event.target as HTMLElement); - const itemKey = info?.type === 'item' ? info.key : undefined; - if (itemKey !== this.state.hover) { - this.setState({hover: itemKey}); + if (hover !== this.state.hover) { + this.setState({hover}); } - }, 20); + this._hoverTimer = 0; + }, !hover && this.state.hover ? 0 : 20); }; protected _handleClick = (event: MouseEvent) => {