@plasmicapp/react-web 0.2.321 → 0.2.322
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/dist/react-web.esm.js
CHANGED
|
@@ -3932,7 +3932,15 @@ function useTriggeredOverlay(plasmicClass, props, config, outerRef, isDismissabl
|
|
|
3932
3932
|
if (outerRef === void 0) { outerRef = null; }
|
|
3933
3933
|
if (isDismissable === void 0) { isDismissable = true; }
|
|
3934
3934
|
var overlayRef = React.useRef(null);
|
|
3935
|
-
var onOverlayRef = mergeRefs(overlayRef, outerRef)
|
|
3935
|
+
var onOverlayRef = mergeRefs(overlayRef, outerRef, function (ref) {
|
|
3936
|
+
// Workaround for https://github.com/adobe/react-spectrum/issues/1513
|
|
3937
|
+
// to avoid touch events leaking under the overlay when it is closed.
|
|
3938
|
+
if (ref) {
|
|
3939
|
+
ref.addEventListener("touchend", function (e) {
|
|
3940
|
+
e.preventDefault();
|
|
3941
|
+
});
|
|
3942
|
+
}
|
|
3943
|
+
});
|
|
3936
3944
|
var context = React.useContext(TriggeredOverlayContext);
|
|
3937
3945
|
if (!context) {
|
|
3938
3946
|
// If no context, then we are not being correctly used. Either complain, or
|