File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -83,13 +83,13 @@ const metadata = {
83
83
* are dragged. If you don't intend to use drag and drop, set this property.
84
84
* <br><br>
85
85
* <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.
87
87
*
88
88
* @type {boolean }
89
89
* @defaultvalue false
90
90
* @public
91
91
*/
92
- noDnd : {
92
+ hideDragOverlay : {
93
93
type : Boolean ,
94
94
} ,
95
95
@@ -238,23 +238,23 @@ class UploadCollection extends UI5Element {
238
238
}
239
239
240
240
onEnterDOM ( ) {
241
- if ( this . noDnd ) {
241
+ if ( this . hideDragOverlay ) {
242
242
return ;
243
243
}
244
244
245
245
attachBodyDnDHandler ( this . _bodyDnDHandler ) ;
246
246
}
247
247
248
248
onExitDOM ( ) {
249
- if ( this . noDnd ) {
249
+ if ( this . hideDragOverlay ) {
250
250
return ;
251
251
}
252
252
253
253
detachBodyDnDHandler ( this . _bodyDnDHandler ) ;
254
254
}
255
255
256
256
_ondragenter ( event ) {
257
- if ( this . noDnd ) {
257
+ if ( this . hideDragOverlay ) {
258
258
return ;
259
259
}
260
260
@@ -266,7 +266,7 @@ class UploadCollection extends UI5Element {
266
266
}
267
267
268
268
_ondrop ( event ) {
269
- if ( this . noDnd ) {
269
+ if ( this . hideDragOverlay ) {
270
270
return ;
271
271
}
272
272
@@ -278,15 +278,15 @@ class UploadCollection extends UI5Element {
278
278
}
279
279
280
280
_ondragover ( event ) {
281
- if ( this . noDnd ) {
281
+ if ( this . hideDragOverlay ) {
282
282
return ;
283
283
}
284
284
285
285
event . preventDefault ( ) ;
286
286
}
287
287
288
- _ondragleave ( event ) {
289
- if ( this . noDnd ) {
288
+ _ondragleave ( ) {
289
+ if ( this . hideDragOverlay ) {
290
290
return ;
291
291
}
292
292
You can’t perform that action at this time.
0 commit comments