@vaadin/vaadin-dialog
Advanced tools
Comparing version 2.4.3 to 2.4.4
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-dialog", | ||
"version": "2.4.3", | ||
"version": "2.4.4", | ||
"main": "vaadin-dialog.js", | ||
@@ -16,0 +16,0 @@ "author": "Vaadin Ltd", |
@@ -20,2 +20,7 @@ const TOUCH_DEVICE = (() => { | ||
value: TOUCH_DEVICE | ||
}, | ||
/* TODO: Expose as a public property (check naming) */ | ||
__dragHandleClassName: { | ||
type: String | ||
} | ||
@@ -47,3 +52,6 @@ }; | ||
const isContentPart = e.target === this.$.overlay.$.content; | ||
const isDraggable = e.target.classList.contains('draggable'); | ||
const isDraggable = e.composedPath().some(node => { | ||
return node.classList && node.classList.contains(this.__dragHandleClassName || 'draggable'); | ||
}); | ||
if ((isResizerContainer && !isResizerContainerScrollbar) || isContentPart || isDraggable) { | ||
@@ -50,0 +58,0 @@ !isDraggable && e.preventDefault(); |
@@ -162,3 +162,3 @@ /** | ||
static get version() { | ||
return '2.4.3'; | ||
return '2.4.4'; | ||
} | ||
@@ -165,0 +165,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40841
696