← All changes
|
modules/atomic-widgets/elements/atomic-tabs/handlers/utils.js
+0
-6
4.3.1
→
4.0.0-dev4
View file →
| @@ -27,14 +27,8 @@ | ||
| 27 | 27 | |
| 28 | 28 | return children.indexOf( el ); |
| 29 | 29 | }; |
| 30 | 30 | |
| 31 | -export const getDirectTabCount = ( tabsRootElement ) => { | |
| 32 | - return tabsRootElement.querySelectorAll( | |
| 33 | - `:scope > [data-element_type="${ TABS_MENU_ELEMENT_TYPE }"] > [data-element_type="${ TAB_ELEMENT_TYPE }"]`, | |
| 34 | - ).length; | |
| 35 | -}; | |
| 36 | - | |
| 37 | 31 | export const getNextTab = ( key, tab ) => { |
| 38 | 32 | const tabs = getChildren( tab, TAB_ELEMENT_TYPE ); |
| 39 | 33 | const tabsLength = tabs.length; |
| 40 | 34 | |