@acrool/react-picker 0.0.3 → 0.0.4-alpha.0

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.
@@ -5531,10 +5531,11 @@ const Xs = ({
5531
5531
  var r;
5532
5532
  if (e.current && i.current) {
5533
5533
  const l = (((r = o == null ? void 0 : o[0]) == null ? void 0 : r.contentRect) ?? i.current.getBoundingClientRect()).height, c = e.current.getBoundingClientRect(), u = c.height, f = c.bottom, d = c.left, p = window.pageYOffset || document.documentElement.scrollTop, g = window.pageXOffset || document.documentElement.scrollLeft, P = window.innerHeight || document.documentElement.clientHeight, b = 15, x = f + l + b >= P ? "top" : "bottom";
5534
- i.current.style.display = "block", i.current.style.top = x === "bottom" ? `${f + p}px` : `${f + p - (l + u)}px`, i.current.style.left = `${d + g}px`, i.current.style.transformOrigin = x === "bottom" ? "top" : "bottom";
5534
+ i.current.style.top = x === "bottom" ? `${f + p}px` : `${f + p - (l + u)}px`, i.current.style.left = `${d + g}px`, i.current.style.transformOrigin = x === "bottom" ? "top" : "bottom";
5535
5535
  }
5536
5536
  };
5537
5537
  if (e.current && i.current) {
5538
+ i.current.style.display = "block";
5538
5539
  const o = new ResizeObserver(s);
5539
5540
  return o.observe(i.current), window.addEventListener("scroll", s), window.addEventListener("resize", s), () => {
5540
5541
  o.disconnect(), window.removeEventListener("scroll", s), window.removeEventListener("resize", s);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acrool/react-picker",
3
- "version": "0.0.3",
3
+ "version": "0.0.4-alpha.0",
4
4
  "description": "This is a react method to quickly combine buttons with Picker",
5
5
  "keywords": [
6
6
  "acrool",