@plasmicapp/react-web 0.2.321 → 0.2.323
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/index.cjs.js
CHANGED
|
@@ -3951,7 +3951,15 @@ function useTriggeredOverlay(plasmicClass, props, config, outerRef, isDismissabl
|
|
|
3951
3951
|
if (outerRef === void 0) { outerRef = null; }
|
|
3952
3952
|
if (isDismissable === void 0) { isDismissable = true; }
|
|
3953
3953
|
var overlayRef = React__namespace.useRef(null);
|
|
3954
|
-
var onOverlayRef = mergeRefs(overlayRef, outerRef)
|
|
3954
|
+
var onOverlayRef = mergeRefs(overlayRef, outerRef, function (ref) {
|
|
3955
|
+
// Workaround for https://github.com/adobe/react-spectrum/issues/1513
|
|
3956
|
+
// to avoid touch events leaking under the overlay when it is closed.
|
|
3957
|
+
if (ref) {
|
|
3958
|
+
ref.addEventListener("touchend", function (e) {
|
|
3959
|
+
e.preventDefault();
|
|
3960
|
+
});
|
|
3961
|
+
}
|
|
3962
|
+
});
|
|
3955
3963
|
var context = React__namespace.useContext(TriggeredOverlayContext);
|
|
3956
3964
|
if (!context) {
|
|
3957
3965
|
// If no context, then we are not being correctly used. Either complain, or
|