@apia/components 3.0.8 → 3.0.9

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.js CHANGED
@@ -916,6 +916,10 @@ const WindowModal = forwardRef(
916
916
  };
917
917
  if (el) {
918
918
  const handleMouseDown = (ev) => {
919
+ if (ev.target.closest?.(
920
+ '[draggable="true"]'
921
+ ))
922
+ return;
919
923
  if (ev.target.closest(
920
924
  getFocusSelector()
921
925
  ))
@@ -6950,7 +6954,7 @@ class SortableListHandler {
6950
6954
  const ref = useCallback((el) => {
6951
6955
  unsuscribe.current();
6952
6956
  if (el) {
6953
- let handleDrag2 = function(ev) {
6957
+ const handleDrag = (ev) => {
6954
6958
  const target = ev.target;
6955
6959
  if (ev.dataTransfer) {
6956
6960
  ev.dataTransfer.effectAllowed = "all";
@@ -6958,9 +6962,9 @@ class SortableListHandler {
6958
6962
  target.classList.add("dragging");
6959
6963
  }
6960
6964
  };
6961
- el.addEventListener("dragstart", handleDrag2);
6965
+ el.addEventListener("dragstart", handleDrag);
6962
6966
  unsuscribe.current = () => {
6963
- el.removeEventListener("dragstart", handleDrag2);
6967
+ el.removeEventListener("dragstart", handleDrag);
6964
6968
  };
6965
6969
  }
6966
6970
  }, []);
@@ -7046,7 +7050,7 @@ const SortableList = makeStyledComponent(
7046
7050
  top: "-4px",
7047
7051
  bottom: "auto",
7048
7052
  width: "100%",
7049
- backgroundColor: "palette.background.default",
7053
+ backgroundColor: "palette.primary.main",
7050
7054
  zIndex: 9
7051
7055
  },
7052
7056
  ".dragover.after:after": {