react-pro-messenger 1.0.21 → 1.0.22

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.es.js CHANGED
@@ -5255,7 +5255,7 @@ const pd = (e, t) => mr(e) ? new hd(t) : new dd(t, {
5255
5255
  isCurrentUserMessage: i
5256
5256
  }) => {
5257
5257
  const s = pe(null), [o, l] = xe(!1);
5258
- return ut(() => (s.current || (s.current = document.createElement("div"), s.current.style.zIndex = "1500", s.current.style.position = "fixed", document.body.appendChild(s.current)), l(!0), () => {
5258
+ return ut(() => (s.current || (s.current = document.createElement("div"), s.current.style.zIndex = "1500", s.current.style.position = "fixed", s.current.style.top = "0", s.current.style.left = "0", s.current.style.width = "100%", s.current.style.height = "100%", s.current.style.pointerEvents = "none", document.body.appendChild(s.current)), l(!0), () => {
5259
5259
  s.current && !t && (document.body.removeChild(s.current), s.current = null);
5260
5260
  }), [t]), !s.current || !o ? null : Na.createPortal(
5261
5261
  /* @__PURE__ */ g.exports.jsx(ks, { children: t && /* @__PURE__ */ g.exports.jsx(
@@ -5265,7 +5265,7 @@ const pd = (e, t) => mr(e) ? new hd(t) : new dd(t, {
5265
5265
  animate: { opacity: 1, scale: 1, y: 0 },
5266
5266
  exit: { opacity: 0, scale: 0.8, y: -10 },
5267
5267
  transition: { duration: 0.2, ease: "easeOut" },
5268
- className: "absolute z-50 bg-white shadow-lg rounded-md p-2 px-1 w-42",
5268
+ className: "absolute z-50 bg-white shadow-lg rounded-md p-2 px-1 w-42 pointer-events-auto",
5269
5269
  style: {
5270
5270
  top: n.y,
5271
5271
  left: n.x