@micromag/screen-keypad 0.3.668 → 0.3.670
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.js +6 -3
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -373,9 +373,9 @@ var KeypadScreen = function KeypadScreen(_ref) {
|
|
|
373
373
|
onCloseModal();
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
document.addEventListener('
|
|
376
|
+
document.addEventListener('mouseup', handleClickOutside);
|
|
377
377
|
return function () {
|
|
378
|
-
document.removeEventListener('
|
|
378
|
+
document.removeEventListener('mouseup', handleClickOutside);
|
|
379
379
|
};
|
|
380
380
|
}, [current, popupInnerRef, containerRef, isInteractivePreview, isEdit, showPopup]);
|
|
381
381
|
var _useState7 = useState(false),
|
|
@@ -388,6 +388,9 @@ var KeypadScreen = function KeypadScreen(_ref) {
|
|
|
388
388
|
var onPopupScrollNotBottom = useCallback(function () {
|
|
389
389
|
setPopupDragDisabled(true);
|
|
390
390
|
}, [setPopupDragDisabled]);
|
|
391
|
+
var onTap = useCallback(function () {
|
|
392
|
+
onCloseModal();
|
|
393
|
+
}, [onCloseModal]);
|
|
391
394
|
var _useDragProgress = useDragProgress({
|
|
392
395
|
disabled: !isView || popupDragDisabled,
|
|
393
396
|
progress: showPopup ? 0 : 1,
|
|
@@ -403,7 +406,7 @@ var KeypadScreen = function KeypadScreen(_ref) {
|
|
|
403
406
|
preventDefault: true,
|
|
404
407
|
stopPropagation: true
|
|
405
408
|
},
|
|
406
|
-
onTap:
|
|
409
|
+
onTap: onTap
|
|
407
410
|
}),
|
|
408
411
|
bindPopupDrag = _useDragProgress.bind,
|
|
409
412
|
popupSpring = _useDragProgress.progress;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-keypad",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.670",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
"access": "public",
|
|
96
96
|
"registry": "https://registry.npmjs.org/"
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "8ee4d77ea24c265bfb0624e11c12b3be0d8c5caf"
|
|
99
99
|
}
|