@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.js
CHANGED
|
@@ -509,7 +509,8 @@ function useStickyIntersectionObserver(ref, scrollContainerSelector, setSticky)
|
|
|
509
509
|
if (!Observer) {
|
|
510
510
|
return;
|
|
511
511
|
}
|
|
512
|
-
|
|
512
|
+
const element = ref.current;
|
|
513
|
+
if (!element || !scrollContainer) {
|
|
513
514
|
return;
|
|
514
515
|
}
|
|
515
516
|
const observer = new Observer((entries) => {
|
|
@@ -529,9 +530,9 @@ function useStickyIntersectionObserver(ref, scrollContainerSelector, setSticky)
|
|
|
529
530
|
// Use bottom margin to avoid stickyness when scrolling out to bottom
|
|
530
531
|
threshold: [1]
|
|
531
532
|
});
|
|
532
|
-
observer.observe(
|
|
533
|
+
observer.observe(element);
|
|
533
534
|
return () => {
|
|
534
|
-
observer.unobserve(
|
|
535
|
+
observer.unobserve(element);
|
|
535
536
|
};
|
|
536
537
|
}, [ref.current, scrollContainer, setSticky]);
|
|
537
538
|
}
|
|
@@ -2173,13 +2174,17 @@ function FeelTextfield(props) {
|
|
|
2173
2174
|
event.preventDefault();
|
|
2174
2175
|
}
|
|
2175
2176
|
};
|
|
2176
|
-
containerRef.current
|
|
2177
|
-
|
|
2178
|
-
|
|
2177
|
+
const container = containerRef.current;
|
|
2178
|
+
if (!container) {
|
|
2179
|
+
return;
|
|
2180
|
+
}
|
|
2181
|
+
container.addEventListener("copy", copyHandler);
|
|
2182
|
+
container.addEventListener("cut", copyHandler);
|
|
2183
|
+
container.addEventListener("paste", pasteHandler);
|
|
2179
2184
|
return () => {
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2185
|
+
container.removeEventListener("copy", copyHandler);
|
|
2186
|
+
container.removeEventListener("cut", copyHandler);
|
|
2187
|
+
container.removeEventListener("paste", pasteHandler);
|
|
2183
2188
|
};
|
|
2184
2189
|
}, [containerRef, feelActive, handleFeelToggle, setFocus]);
|
|
2185
2190
|
return jsxRuntime.jsxs("div", {
|