Skip to content

Commit c360443

Browse files
authored
fix(ui5-upload-collection): rename noDnd property to hideDragOverlay (#3335)
Part of #3107 BREAKING_CHANGE: The property noDnd has been renamed to hideDragOverlay
1 parent 4208d19 commit c360443

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

packages/fiori/src/UploadCollection.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ const metadata = {
8383
* are dragged. If you don't intend to use drag and drop, set this property.
8484
* <br><br>
8585
* <b>Note:</b> It is up to the application developer to add handler for <code>drop</code> event and handle it.
86-
* <code>ui5-upload-collection</code> only shows an overlay.
86+
* <code>ui5-upload-collection</code> only displays an overlay.
8787
*
8888
* @type {boolean}
8989
* @defaultvalue false
9090
* @public
9191
*/
92-
noDnd: {
92+
hideDragOverlay: {
9393
type: Boolean,
9494
},
9595

@@ -238,23 +238,23 @@ class UploadCollection extends UI5Element {
238238
}
239239

240240
onEnterDOM() {
241-
if (this.noDnd) {
241+
if (this.hideDragOverlay) {
242242
return;
243243
}
244244

245245
attachBodyDnDHandler(this._bodyDnDHandler);
246246
}
247247

248248
onExitDOM() {
249-
if (this.noDnd) {
249+
if (this.hideDragOverlay) {
250250
return;
251251
}
252252

253253
detachBodyDnDHandler(this._bodyDnDHandler);
254254
}
255255

256256
_ondragenter(event) {
257-
if (this.noDnd) {
257+
if (this.hideDragOverlay) {
258258
return;
259259
}
260260

@@ -266,7 +266,7 @@ class UploadCollection extends UI5Element {
266266
}
267267

268268
_ondrop(event) {
269-
if (this.noDnd) {
269+
if (this.hideDragOverlay) {
270270
return;
271271
}
272272

@@ -278,15 +278,15 @@ class UploadCollection extends UI5Element {
278278
}
279279

280280
_ondragover(event) {
281-
if (this.noDnd) {
281+
if (this.hideDragOverlay) {
282282
return;
283283
}
284284

285285
event.preventDefault();
286286
}
287287

288-
_ondragleave(event) {
289-
if (this.noDnd) {
288+
_ondragleave() {
289+
if (this.hideDragOverlay) {
290290
return;
291291
}
292292

0 commit comments

Comments
 (0)