@jsenv/navi 0.29.394 → 0.29.395

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.
@@ -40992,7 +40992,15 @@ const useControlProps = (props, {
40992
40992
  if (actsOnMouseDown) {
40993
40993
  return {
40994
40994
  name: "mousedown",
40995
- allowed: () => onButtonInteractionAllowed(e)
40995
+ allowed: () => onButtonInteractionAllowed(e),
40996
+ // The press is answered here, refusal included: the click it
40997
+ // leaves behind would otherwise follow the href of a
40998
+ // <Button route>. Not asked about again — a second refusal
40999
+ // reads as "got it" and dismisses the callout just shown.
41000
+ prevented: () => {
41001
+ const clickSuppressionIsOver = suppressClickAfterGesture();
41002
+ clickSuppressionIsOver();
41003
+ }
40996
41004
  };
40997
41005
  }
40998
41006
  return null;
@@ -41003,7 +41011,11 @@ const useControlProps = (props, {
41003
41011
  }
41004
41012
  return {
41005
41013
  name: "click",
41006
- allowed: () => onButtonInteractionAllowed(e)
41014
+ allowed: () => onButtonInteractionAllowed(e),
41015
+ // A refused press keeps nothing of the click's default: the href
41016
+ // of a <Button route> (rendered as <a>), a form submit, a
41017
+ // popovertarget.
41018
+ prevented: () => e.preventDefault()
41007
41019
  };
41008
41020
  }
41009
41021
  };