From 339da49634f8ea6fbfe73ec4d9bb103dd737a77e Mon Sep 17 00:00:00 2001 From: Matias Arriola Date: Wed, 29 Dec 2021 21:08:49 +0000 Subject: [PATCH] Merged in bugfix/icon-delete (pull request #21) Fix icon delete btn disappearing too quick * Fix icon delete btn disappearing too quick Approved-by: Paulo Veiga --- packages/mindplot/src/components/IconGroupRemoveTip.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/mindplot/src/components/IconGroupRemoveTip.js b/packages/mindplot/src/components/IconGroupRemoveTip.js index 710e8e9f..ebfd287f 100644 --- a/packages/mindplot/src/components/IconGroupRemoveTip.js +++ b/packages/mindplot/src/components/IconGroupRemoveTip.js @@ -1,4 +1,3 @@ -import $ from 'jquery'; import { $assert, $defined } from '@wisemapping/core-js'; import { Group, Rect, Line } from '@wisemapping/web2d'; @@ -86,7 +85,7 @@ export default class RemoveTip { if (!$defined(delay) || delay === 0) { close(); } else { - this._closeTimeoutId = $(close).delay(delay); + this._closeTimeoutId = setTimeout(close, delay); } } }