Fixed #2618 - The overlay elements automatically close on mobile devices

pull/2621/head
mertsincan 2022-06-02 13:17:02 +01:00
parent 441f51bdc6
commit 319df1e932
14 changed files with 14 additions and 14 deletions

View File

@ -250,7 +250,7 @@ export default {
bindResizeListener() {
if (!this.resizeListener) {
this.resizeListener = () => {
if (this.overlayVisible) {
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
this.hideOverlay();
}
};

View File

@ -768,7 +768,7 @@ export default {
bindResizeListener() {
if (!this.resizeListener) {
this.resizeListener = () => {
if (this.overlayVisible && !DomHandler.isAndroid()) {
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
this.overlayVisible = false;
}
};

View File

@ -243,7 +243,7 @@ export default {
bindResizeListener() {
if (!this.resizeListener) {
this.resizeListener = () => {
if (this.overlayVisible) {
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
this.hide();
}
};

View File

@ -502,7 +502,7 @@ export default {
bindResizeListener() {
if (!this.resizeListener) {
this.resizeListener = () => {
if (this.overlayVisible) {
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
this.overlayVisible = false;
}
};

View File

@ -165,7 +165,7 @@ export default {
bindResizeListener() {
if (!this.resizeListener) {
this.resizeListener = () => {
if (this.visible) {
if (this.visible && !DomHandler.isTouchDevice()) {
this.visible = false;
}
};

View File

@ -169,7 +169,7 @@ export default {
bindResizeListener() {
if (!this.resizeListener) {
this.resizeListener = () => {
if (this.visible) {
if (this.visible && !DomHandler.isTouchDevice()) {
this.hide();
}
};

View File

@ -435,7 +435,7 @@ export default {
bindResizeListener() {
if (!this.resizeListener) {
this.resizeListener = () => {
if (this.overlayVisible) {
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
this.hide();
}
};

View File

@ -176,7 +176,7 @@ export default {
bindResizeListener() {
if (!this.resizeListener) {
this.resizeListener = () => {
if (this.overlayVisible) {
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
this.hide();
}
};

View File

@ -495,7 +495,7 @@ export default {
bindResizeListener() {
if (!this.resizeListener) {
this.resizeListener = () => {
if (this.overlayVisible && !DomHandler.isAndroid()) {
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
this.hide();
}
};

View File

@ -203,7 +203,7 @@ export default {
bindResizeListener() {
if (!this.resizeListener) {
this.resizeListener = () => {
if (this.visible && !DomHandler.isAndroid()) {
if (this.visible && !DomHandler.isTouchDevice()) {
this.visible = false;
}
};

View File

@ -227,7 +227,7 @@ export default {
bindResizeListener() {
if (!this.resizeListener) {
this.resizeListener = () => {
if (this.overlayVisible) {
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
this.overlayVisible = false;
}
};

View File

@ -148,7 +148,7 @@ export default {
bindResizeListener() {
if (!this.resizeListener) {
this.resizeListener = () => {
if (this.visible) {
if (this.visible && !DomHandler.isTouchDevice()) {
this.hide();
}
};

View File

@ -72,7 +72,7 @@ function show(el) {
DomHandler.fadeIn(tooltipElement, 250);
window.addEventListener('resize', function onWindowResize() {
if (!DomHandler.isAndroid()) {
if (!DomHandler.isTouchDevice()) {
hide(el);
}
this.removeEventListener('resize', onWindowResize);

View File

@ -276,7 +276,7 @@ export default {
bindResizeListener() {
if (!this.resizeListener) {
this.resizeListener = () => {
if (this.overlayVisible) {
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
this.hide();
}
};