@syncfusion/ej2-filemanager 20.2.39 → 20.2.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/ej2-filemanager.umd.min.js +2 -2
- package/dist/ej2-filemanager.umd.min.js.map +1 -1
- package/dist/es6/ej2-filemanager.es2015.js +9 -4
- package/dist/es6/ej2-filemanager.es2015.js.map +1 -1
- package/dist/es6/ej2-filemanager.es5.js +7 -2
- package/dist/es6/ej2-filemanager.es5.js.map +1 -1
- package/dist/global/ej2-filemanager.min.js +2 -2
- package/dist/global/ej2-filemanager.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +15 -15
- package/src/file-manager/common/utility.js +5 -0
- package/src/file-manager/layout/details-view.js +1 -1
- package/src/file-manager/pop-up/context-menu.js +1 -1
@@ -1597,7 +1597,7 @@ function doPasteUpdate(parent, operation, result) {
|
|
1597
1597
|
* @private
|
1598
1598
|
*/
|
1599
1599
|
function readDropPath(parent) {
|
1600
|
-
|
1600
|
+
let pathId = getValue('_fm_id', parent.dropData);
|
1601
1601
|
parent.expandedId = pathId;
|
1602
1602
|
parent.itemData = [parent.dropData];
|
1603
1603
|
if (parent.isPathDrag) {
|
@@ -1605,7 +1605,12 @@ function readDropPath(parent) {
|
|
1605
1605
|
}
|
1606
1606
|
else {
|
1607
1607
|
if (parent.navigationpaneModule) {
|
1608
|
-
|
1608
|
+
let node = select('[data-uid="' + pathId + '"]', parent.navigationpaneModule.treeObj.element);
|
1609
|
+
if (!node) {
|
1610
|
+
let liElement = document.querySelector('[data-id = "' + getValue('id', parent.dropData) + '"]');
|
1611
|
+
pathId = liElement.getAttribute("data-uid");
|
1612
|
+
node = select('[data-uid="' + pathId + '"]', parent.navigationpaneModule.treeObj.element);
|
1613
|
+
}
|
1609
1614
|
updatePath(node, parent.dropData, parent);
|
1610
1615
|
}
|
1611
1616
|
read(parent, dropPath, parent.dropPath);
|
@@ -5774,7 +5779,7 @@ class ContextMenu$2 {
|
|
5774
5779
|
data = this.parent.detailsviewModule.gridObj.getRowObjectFromUID(uid).data;
|
5775
5780
|
if (isNullOrUndefined(this.targetElement.getAttribute('aria-selected'))) {
|
5776
5781
|
/* istanbul ignore next */
|
5777
|
-
this.parent.detailsviewModule.gridObj.selectRows([parseInt(this.targetElement.getAttribute('
|
5782
|
+
this.parent.detailsviewModule.gridObj.selectRows([parseInt(this.targetElement.getAttribute('data-rowindex'), 10)]);
|
5778
5783
|
}
|
5779
5784
|
selected = true;
|
5780
5785
|
/* istanbul ignore next */
|
@@ -10139,7 +10144,7 @@ class DetailsView {
|
|
10139
10144
|
}
|
10140
10145
|
getFocusedItemIndex() {
|
10141
10146
|
return (!isNullOrUndefined(this.getFocusedItem())) ?
|
10142
|
-
parseInt(this.getFocusedItem().getAttribute('
|
10147
|
+
parseInt(this.getFocusedItem().getAttribute('data-rowindex'), 10) : null;
|
10143
10148
|
}
|
10144
10149
|
/* istanbul ignore next */
|
10145
10150
|
// eslint:disable-next-line
|