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) => {