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:
parent
26486d01c1
commit
6fe2431676
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue