Fixed #1411 - Filtered Dropdown unusable on Windows Tablet
parent
93cc6a8a6e
commit
a321ccaa63
|
@ -512,7 +512,7 @@ export default {
|
||||||
bindResizeListener() {
|
bindResizeListener() {
|
||||||
if (!this.resizeListener) {
|
if (!this.resizeListener) {
|
||||||
this.resizeListener = () => {
|
this.resizeListener = () => {
|
||||||
if (this.overlayVisible && !DomHandler.isAndroid()) {
|
if (this.overlayVisible && !DomHandler.isTouchDevice()) {
|
||||||
this.hide();
|
this.hide();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -499,4 +499,8 @@ export default class DomHandler {
|
||||||
static isAndroid() {
|
static isAndroid() {
|
||||||
return /(android)/i.test(navigator.userAgent);
|
return /(android)/i.test(navigator.userAgent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static isTouchDevice() {
|
||||||
|
return (('ontouchstart' in window) || (navigator.maxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue