commit 32bdc3dfdeb5a64cd6590a2f78b68ca9d97b777a
parent b10ab9b1e664d0afdaac1013f12ddd9f85f14bb7
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Fri, 17 Feb 2017 23:41:14 +0300
[context menu] call callback immediatially without setTimeout -- fixes copy to clipboard not working
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/contextmenu/index.js b/src/lib/contextmenu/index.js
@@ -131,7 +131,7 @@ class Contextmenu {
e.stopPropagation();
e.preventDefault();
this.hide();
- setTimeout(() => callback(e), 0);
+ callback(e);
}
createSeparator(itemOptions) {