@vaadin/vaadin-dialog
Advanced tools
Comparing version 2.5.0 to 2.5.1
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-dialog", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"main": "vaadin-dialog.js", | ||
@@ -16,0 +16,0 @@ "author": "Vaadin Ltd", |
@@ -21,2 +21,7 @@ const TOUCH_DEVICE = (() => { | ||
value: TOUCH_DEVICE | ||
}, | ||
/* TODO: Expose as a public property (check naming) */ | ||
__dragHandleClassName: { | ||
type: String | ||
} | ||
@@ -50,3 +55,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) { | ||
@@ -53,0 +61,0 @@ !isDraggable && e.preventDefault(); |
@@ -164,3 +164,3 @@ /** | ||
static get version() { | ||
return '2.5.0'; | ||
return '2.5.1'; | ||
} | ||
@@ -167,0 +167,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
51468
1009