mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Remove .p-unselectable-text
This commit is contained in:
parent
d06ef16b81
commit
4455d6ec59
5 changed files with 10 additions and 13 deletions
|
@ -307,7 +307,7 @@ export default {
|
|||
|
||||
this.container.style.margin = '0';
|
||||
document.body.setAttribute('data-p-unselectable-text', 'true');
|
||||
!this.isUnstyled && DomHandler.addClass(document.body, 'p-unselectable-text');
|
||||
!this.isUnstyled && DomHandler.addStyles(document.body, { 'user-select': 'none' });
|
||||
}
|
||||
},
|
||||
bindGlobalListeners() {
|
||||
|
@ -374,7 +374,7 @@ export default {
|
|||
if (this.dragging) {
|
||||
this.dragging = false;
|
||||
document.body.removeAttribute('data-p-unselectable-text');
|
||||
!this.isUnstyled && DomHandler.removeClass(document.body, 'p-unselectable-text');
|
||||
!this.isUnstyled && (document.body.style['user-select'] = '');
|
||||
|
||||
this.$emit('dragend', event);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue