@bigbinary/neeto-folders-frontend 2.0.14 → 2.0.16
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/app/javascript/src/translations/de.json +43 -0
- package/app/javascript/src/translations/es.json +43 -0
- package/app/javascript/src/translations/fr.json +43 -0
- package/dist/cjs/components.js +3 -1
- package/dist/cjs/components.js.map +1 -1
- package/dist/components.js +3 -1
- package/dist/components.js.map +1 -1
- package/package.json +1 -1
package/dist/components.js
CHANGED
|
@@ -1561,7 +1561,9 @@ var TreeSelect = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
1561
1561
|
var isValidParent = (activeFolder === null || activeFolder === void 0 ? void 0 : activeFolder.meta.depth) < config.maxDepth;
|
|
1562
1562
|
var parentId = isValidParent ? activeFolder.id : null;
|
|
1563
1563
|
useEffect(function () {
|
|
1564
|
-
|
|
1564
|
+
if (!field.value) {
|
|
1565
|
+
setValue(parentId);
|
|
1566
|
+
}
|
|
1565
1567
|
}, [parentId]);
|
|
1566
1568
|
var folderOptions = useMemo(function () {
|
|
1567
1569
|
return createFolderOptions(foldersMap, config);
|