@7shifts/sous-chef 3.36.1-beta.0 → 3.36.1-beta.2
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/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -3
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5745,21 +5745,22 @@ var DropdownListItem = function DropdownListItem(_ref) {
|
|
|
5745
5745
|
var canInteractWithItem = function canInteractWithItem(child) {
|
|
5746
5746
|
var itemType = getItemType(child);
|
|
5747
5747
|
if (itemType === 'other') {
|
|
5748
|
-
console.log('DROPDOWN:
|
|
5748
|
+
console.log('DROPDOWN: itemType', itemType);
|
|
5749
5749
|
}
|
|
5750
|
-
if (itemType === 'DropdownListDivider'
|
|
5750
|
+
if (itemType === 'DropdownListDivider') {
|
|
5751
5751
|
return false;
|
|
5752
5752
|
}
|
|
5753
5753
|
return !child.props.disabled || false;
|
|
5754
5754
|
};
|
|
5755
5755
|
var getItemType = function getItemType(child) {
|
|
5756
|
+
var componentName = typeof child.type === 'function' && 'displayName' in child.type ? child.type.displayName : 'other';
|
|
5756
5757
|
switch (child.type) {
|
|
5757
5758
|
case DropdownListDivider:
|
|
5758
5759
|
return 'DropdownListDivider';
|
|
5759
5760
|
case DropdownListItem:
|
|
5760
5761
|
return 'DropdownListItem';
|
|
5761
5762
|
default:
|
|
5762
|
-
return
|
|
5763
|
+
return componentName;
|
|
5763
5764
|
}
|
|
5764
5765
|
};
|
|
5765
5766
|
var calculateScrollYPosition = function calculateScrollYPosition(newFocusItem, lastFocusItem, paneScrollTop, maxPaneHeight, elementYPosition) {
|