fix(nested-tab-available): make the another tabs into one tabs available (#18877)

* fix(nested-tab-available): make the another tabs into one tabs available

* fix(netsted-tab): remove code of disable nested tab
This commit is contained in:
smileydev 2022-03-03 15:22:49 -05:00 committed by GitHub
parent 26486d01c1
commit 6fe2431676
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions

View File

@ -54,15 +54,6 @@ export default function getDropPosition(monitor, Component) {
return null;
}
// TODO need a better solution to prevent nested tabs
if (
draggingItem.type === TABS_TYPE &&
component.type === TAB_TYPE &&
componentDepth === 2
) {
return null;
}
const validChild = isValidChild({
parentType: component.type,
parentDepth: componentDepth,