react-notify-sdk 1.0.53 → 1.0.55

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.
@@ -21,10 +21,12 @@ const FeatureMessage = ({ message, onDismiss }) => {
21
21
  if (window.location.pathname === path)
22
22
  return;
23
23
  window.history.pushState({}, "", path);
24
- window.dispatchEvent(new PopStateEvent("popstate"));
24
+ //window.dispatchEvent(new PopStateEvent("popstate"));
25
25
  };
26
26
  // Handle click with tracking
27
27
  const handleClick = async (e) => {
28
+ e.preventDefault();
29
+ e.stopPropagation();
28
30
  // Don't trigger if clicking close button
29
31
  if (e.target.closest('[data-dismiss-button]')) {
30
32
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-notify-sdk",
3
- "version": "1.0.53",
3
+ "version": "1.0.55",
4
4
  "description": "SDK for displaying real-time route-specific messages in React apps",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",