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
This commit is contained in:
Matias Arriola 2021-12-29 21:08:49 +00:00 committed by Paulo Veiga
parent 6da0d22d1b
commit 339da49634

View File

@ -1,4 +1,3 @@
import $ from 'jquery';
import { $assert, $defined } from '@wisemapping/core-js'; import { $assert, $defined } from '@wisemapping/core-js';
import { Group, Rect, Line } from '@wisemapping/web2d'; import { Group, Rect, Line } from '@wisemapping/web2d';
@ -86,7 +85,7 @@ export default class RemoveTip {
if (!$defined(delay) || delay === 0) { if (!$defined(delay) || delay === 0) {
close(); close();
} else { } else {
this._closeTimeoutId = $(close).delay(delay); this._closeTimeoutId = setTimeout(close, delay);
} }
} }
} }