@kunpeng-js/properties-panel 2026.10.3 → 2026.10.5
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.esm.js +14 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +14 -9
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -490,7 +490,8 @@ function useStickyIntersectionObserver(ref, scrollContainerSelector, setSticky)
|
|
|
490
490
|
if (!Observer) {
|
|
491
491
|
return;
|
|
492
492
|
}
|
|
493
|
-
|
|
493
|
+
const element = ref.current;
|
|
494
|
+
if (!element || !scrollContainer) {
|
|
494
495
|
return;
|
|
495
496
|
}
|
|
496
497
|
const observer = new Observer((entries) => {
|
|
@@ -510,9 +511,9 @@ function useStickyIntersectionObserver(ref, scrollContainerSelector, setSticky)
|
|
|
510
511
|
// Use bottom margin to avoid stickyness when scrolling out to bottom
|
|
511
512
|
threshold: [1]
|
|
512
513
|
});
|
|
513
|
-
observer.observe(
|
|
514
|
+
observer.observe(element);
|
|
514
515
|
return () => {
|
|
515
|
-
observer.unobserve(
|
|
516
|
+
observer.unobserve(element);
|
|
516
517
|
};
|
|
517
518
|
}, [ref.current, scrollContainer, setSticky]);
|
|
518
519
|
}
|
|
@@ -2154,13 +2155,17 @@ function FeelTextfield(props) {
|
|
|
2154
2155
|
event.preventDefault();
|
|
2155
2156
|
}
|
|
2156
2157
|
};
|
|
2157
|
-
containerRef.current
|
|
2158
|
-
|
|
2159
|
-
|
|
2158
|
+
const container = containerRef.current;
|
|
2159
|
+
if (!container) {
|
|
2160
|
+
return;
|
|
2161
|
+
}
|
|
2162
|
+
container.addEventListener("copy", copyHandler);
|
|
2163
|
+
container.addEventListener("cut", copyHandler);
|
|
2164
|
+
container.addEventListener("paste", pasteHandler);
|
|
2160
2165
|
return () => {
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2166
|
+
container.removeEventListener("copy", copyHandler);
|
|
2167
|
+
container.removeEventListener("cut", copyHandler);
|
|
2168
|
+
container.removeEventListener("paste", pasteHandler);
|
|
2164
2169
|
};
|
|
2165
2170
|
}, [containerRef, feelActive, handleFeelToggle, setFocus]);
|
|
2166
2171
|
return jsxs("div", {
|