@vaadin/vaadin-dialog
Advanced tools
Comparing version 2.3.0-alpha2 to 2.3.0-alpha3
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-dialog", | ||
"version": "2.3.0-alpha2", | ||
"version": "2.3.0-alpha3", | ||
"main": "vaadin-dialog.js", | ||
@@ -16,0 +16,0 @@ "author": "Vaadin Ltd", |
@@ -23,4 +23,5 @@ /** | ||
const isContentPart = e.target === this.$.overlay.$.content; | ||
if ((isResizerContainer && !isResizerContainerScrollbar) || isContentPart) { | ||
e.preventDefault(); | ||
const isDraggable = e.target.classList.contains('draggable'); | ||
if ((isResizerContainer && !isResizerContainerScrollbar) || isContentPart || isDraggable) { | ||
!isDraggable && e.preventDefault(); | ||
this._originalBounds = this._getOverlayBounds(); | ||
@@ -27,0 +28,0 @@ const event = this.__getMouseOrFirstTouchEvent(e); |
@@ -162,3 +162,3 @@ /** | ||
static get version() { | ||
return '2.3.0-alpha2'; | ||
return '2.3.0-alpha3'; | ||
} | ||
@@ -229,2 +229,6 @@ | ||
* Set to true to enable repositioning the dialog by clicking and dragging. | ||
* | ||
* By default, only the overlay area can be used to drag the element. But, | ||
* a child element can be marked as a draggable area by adding a | ||
* "`draggable`" class to it. | ||
*/ | ||
@@ -231,0 +235,0 @@ draggable: { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
39770
658
1