Skip to content

Commit

Permalink
after cr
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM committed Dec 6, 2024
1 parent c5e16d0 commit 6ca2bd6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,12 @@
&__item-content {
position: relative;
display: flex;
align-items: center;
align-items: baseline;
width: 100%;
cursor: pointer;
padding: calculateRem(9px);
color: $ibexa-color-dark;
font-size: calculateRem(14px);
font-size: $ibexa-text-font-size-medium;
text-align: left;
text-decoration: none;
border: none;
Expand All @@ -71,17 +70,5 @@
color: $ibexa-color-black;
text-decoration: none;
}

&[disabled],
&:disabled,
&--disabled {
pointer-events: none;
cursor: not-allowed;
opacity: 0.2;

&:hover {
background-color: initial;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ const DraggableDialog = ({ children, referenceElement, positionOffset }) => {

useEffect(() => {
if (isDragging) {
rootDOMElement.addEventListener('mousemove', handleDragging);
rootDOMElement.addEventListener('mouseup', stopDragging);
rootDOMElement.addEventListener('mousemove', handleDragging, false);
rootDOMElement.addEventListener('mouseup', stopDragging, false);
}

return () => {
Expand Down
4 changes: 2 additions & 2 deletions src/bundle/ui-dev/src/modules/common/popup-menu/popup.menu.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, useEffect, useRef, useMemo } from 'react';
import PropTypes from 'prop-types';

import { getTranslator } from '@ibexa-admin-ui/src/bundle/Resources/public/js/scripts/helpers/context.helper';
import { getTranslator, getRootDOMElement } from '@ibexa-admin-ui/src/bundle/Resources/public/js/scripts/helpers/context.helper';
import { createCssClassNames } from '@ibexa-admin-ui/src/bundle/ui-dev/src/modules/common/helpers/css.class.names';
import Icon from '@ibexa-admin-ui/src/bundle/ui-dev/src/modules/common/icon/icon';

Expand Down Expand Up @@ -188,7 +188,7 @@ PopupMenu.defaultProps = {
onClose: () => {},
onItemClick: () => {},
positionOffset: () => ({ x: 0, y: 0 }),
scrollContainer: window.document.body,
scrollContainer: getRootDOMElement(),
};

export default PopupMenu;

0 comments on commit 6ca2bd6

Please sign in to comment.