@vention/machine-logic-ui-sdk 0.44.24 → 0.44.26
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/index.esm.js +11 -2
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -2273,10 +2273,19 @@ const VirtualKeyboard = () => {
|
|
|
2273
2273
|
setIsKeyboardVisible(false);
|
|
2274
2274
|
}
|
|
2275
2275
|
}
|
|
2276
|
-
|
|
2276
|
+
// Not mouseup: simple-keyboard calls preventDefault on pointerdown (preventMouseDownDefault),
|
|
2277
|
+
// which suppresses compatibility mouse events.
|
|
2278
|
+
// Touch stays on touchend: only preventDefault there blocks the ghost click after submit, pointerup can't.
|
|
2279
|
+
function handleNonTouchPointerUp(event) {
|
|
2280
|
+
if (event.pointerType === "touch") {
|
|
2281
|
+
return;
|
|
2282
|
+
}
|
|
2283
|
+
handleMouseOrTouchUp(event);
|
|
2284
|
+
}
|
|
2285
|
+
document.addEventListener("pointerup", handleNonTouchPointerUp);
|
|
2277
2286
|
document.addEventListener("touchend", handleMouseOrTouchUp);
|
|
2278
2287
|
return () => {
|
|
2279
|
-
document.removeEventListener("
|
|
2288
|
+
document.removeEventListener("pointerup", handleNonTouchPointerUp);
|
|
2280
2289
|
document.removeEventListener("touchend", handleMouseOrTouchUp);
|
|
2281
2290
|
};
|
|
2282
2291
|
}, [isSubmitPressed]);
|