Skip to content

Commit

Permalink
Refactor #1878
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Mar 16, 2021
1 parent e2bc0da commit a4acbe0
Show file tree
Hide file tree
Showing 20 changed files with 42 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/autocomplete/AutoComplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,8 @@ export class AutoComplete extends Component {
if (this.timeout) {
clearTimeout(this.timeout);
}

DomHandler.revertZIndex();
}

renderTooltip() {
Expand Down
2 changes: 2 additions & 0 deletions src/components/calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ export class Calendar extends Component {
this.scrollHandler.destroy();
this.scrollHandler = null;
}

DomHandler.revertZIndex();
}

renderTooltip() {
Expand Down
2 changes: 2 additions & 0 deletions src/components/cascadeselect/CascadeSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,8 @@ export class CascadeSelect extends Component {
this.scrollHandler.destroy();
this.scrollHandler = null;
}

DomHandler.revertZIndex();
}

componentDidUpdate(prevProps) {
Expand Down
2 changes: 2 additions & 0 deletions src/components/colorpicker/ColorPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,8 @@ export class ColorPicker extends Component {
this.tooltip.destroy();
this.tooltip = null;
}

DomHandler.revertZIndex();
}

updateUI() {
Expand Down
2 changes: 2 additions & 0 deletions src/components/confirmpopup/ConfirmPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ export class ConfirmPopup extends Component {
this.scrollHandler.destroy();
this.scrollHandler = null;
}

DomHandler.revertZIndex();
}

renderContent() {
Expand Down
2 changes: 2 additions & 0 deletions src/components/contextmenu/ContextMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,8 @@ export class ContextMenu extends Component {
componentWillUnmount() {
this.unbindDocumentListeners();
this.unbindDocumentContextMenuListener();

DomHandler.revertZIndex();
}

renderContextMenu() {
Expand Down
2 changes: 2 additions & 0 deletions src/components/dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,8 @@ export class Dialog extends Component {
document.head.removeChild(this.styleElement);
this.styleElement = null;
}

DomHandler.revertZIndex();
}

renderCloseIcon() {
Expand Down
2 changes: 2 additions & 0 deletions src/components/dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,8 @@ export class Dropdown extends Component {
clearTimeout(this.hideTimeout);
this.hideTimeout = null;
}

DomHandler.revertZIndex();
}

componentDidUpdate(prevProps) {
Expand Down
2 changes: 2 additions & 0 deletions src/components/galleria/Galleria.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ export class Galleria extends Component {
if (this.state.slideShowActive) {
this.stopSlideShow();
}

DomHandler.revertZIndex();
}

renderHeader() {
Expand Down
2 changes: 2 additions & 0 deletions src/components/menu/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ export class Menu extends Component {
this.scrollHandler.destroy();
this.scrollHandler = null;
}

DomHandler.revertZIndex();
}

renderSubmenu(submenu, index) {
Expand Down
4 changes: 4 additions & 0 deletions src/components/menubar/Menubar.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ export class Menubar extends Component {
});
}

componentWillUnmount() {
DomHandler.revertZIndex();
}

renderCustomContent() {
if (this.props.children) {
return (
Expand Down
2 changes: 2 additions & 0 deletions src/components/multiselect/MultiSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,8 @@ export class MultiSelect extends Component {
this.tooltip.destroy();
this.tooltip = null;
}

DomHandler.revertZIndex();
}

hasFilter() {
Expand Down
2 changes: 2 additions & 0 deletions src/components/overlaypanel/OverlayPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ export class OverlayPanel extends Component {
document.head.removeChild(this.styleElement);
this.styleElement = null;
}

DomHandler.revertZIndex();
}

renderCloseIcon() {
Expand Down
2 changes: 2 additions & 0 deletions src/components/password/Password.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,8 @@ export class Password extends Component {
this.tooltip.destroy();
this.tooltip = null;
}

DomHandler.revertZIndex();
}

renderTooltip() {
Expand Down
2 changes: 2 additions & 0 deletions src/components/scrolltop/ScrollTop.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ export class ScrollTop extends Component {
this.unbindDocumentScrollListener();
else if (this.props.target === 'parent')
this.unbindParentScrollListener();

DomHandler.revertZIndex();
}

render() {
Expand Down
2 changes: 2 additions & 0 deletions src/components/sidebar/Sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ export class Sidebar extends Component {
componentWillUnmount() {
this.unbindMaskClickListener();
this.disableModality();

DomHandler.revertZIndex();
}

renderCloseIcon() {
Expand Down
2 changes: 2 additions & 0 deletions src/components/slidemenu/SlideMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,8 @@ export class SlideMenu extends Component {
this.scrollHandler.destroy();
this.scrollHandler = null;
}

DomHandler.revertZIndex();
}

renderElement() {
Expand Down
2 changes: 2 additions & 0 deletions src/components/splitbutton/SplitButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ export class SplitButton extends Component {
this.tooltip.destroy();
this.tooltip = null;
}

DomHandler.revertZIndex();
}

renderTooltip() {
Expand Down
2 changes: 2 additions & 0 deletions src/components/tieredmenu/TieredMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ export class TieredMenu extends Component {
this.scrollHandler.destroy();
this.scrollHandler = null;
}

DomHandler.revertZIndex();
}

renderElement() {
Expand Down
2 changes: 2 additions & 0 deletions src/components/tooltip/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ export class Tooltip extends Component {
this.scrollHandler.destroy();
this.scrollHandler = null;
}

DomHandler.revertZIndex();
}

renderElement() {
Expand Down

0 comments on commit a4acbe0

Please sign in to comment.