touchUI fix

pull/12/head
cagataycivici 2019-05-27 13:30:26 +03:00
parent c7257c5203
commit a0513212d1
1 changed files with 6 additions and 4 deletions

View File

@ -1154,10 +1154,12 @@ export default {
this.mask.style.zIndex = String(parseInt(this.$refs.overlay.style.zIndex, 10) - 1); this.mask.style.zIndex = String(parseInt(this.$refs.overlay.style.zIndex, 10) - 1);
DomHandler.addMultipleClasses(this.mask, 'p-component-overlay p-datepicker-mask p-datepicker-mask-scrollblocker'); DomHandler.addMultipleClasses(this.mask, 'p-component-overlay p-datepicker-mask p-datepicker-mask-scrollblocker');
setTimeout(() => {
this.maskClickListener = () => { this.maskClickListener = () => {
this.disableModality(); this.disableModality();
}; };
this.mask.addEventListener('click', this.maskClickListener); this.mask.addEventListener('click', this.maskClickListener);
}, 150);
document.body.appendChild(this.mask); document.body.appendChild(this.mask);
DomHandler.addClass(document.body, 'p-overflow-hidden'); DomHandler.addClass(document.body, 'p-overflow-hidden');