Merge pull request #143 from simoleo89/fix/v35-followups

fix: V3.5.0 follow-ups (DraggableWindow useRef, catalog test contract)
This commit is contained in:
DuckieTM
2026-05-21 07:38:36 +02:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
@@ -30,7 +30,7 @@ export const DraggableWindow: FC<DraggableWindowProps> = props =>
const [isDragging, setIsDragging] = useState(false); const [isDragging, setIsDragging] = useState(false);
const [isPositioned, setIsPositioned] = useState(false); const [isPositioned, setIsPositioned] = useState(false);
const [dragHandler, setDragHandler] = useState<HTMLElement>(null); const [dragHandler, setDragHandler] = useState<HTMLElement>(null);
const elementRef = useRef<HTMLDivElement>(); const elementRef = useRef<HTMLDivElement>(null);
const bringToTop = useCallback(() => { const bringToTop = useCallback(() => {
let zIndex = 400; let zIndex = 400;
for (const existingWindow of CURRENT_WINDOWS) for (const existingWindow of CURRENT_WINDOWS)
@@ -142,6 +142,7 @@ describe('useCatalog filter contract', () =>
'getBuilderFurniPlaceableStatus', 'getBuilderFurniPlaceableStatus',
'getNodeById', 'getNodeById',
'getNodeByName', 'getNodeByName',
'getNodesByOfferId',
'openCatalogByType', 'openCatalogByType',
'openPageById', 'openPageById',
'openPageByName', 'openPageByName',