etudes 6.2.0 → 6.2.1
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/README.md +1 -1
- package/components/Dropdown.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# Études [](https://www.npmjs.com/package/etudes) [](https://www.npmjs.com/package/etudes) [](https://github.com/andrewscwei/etudes/actions?query=workflow%3ACD)
|
|
2
2
|
|
|
3
3
|
A study of headless React components.
|
package/components/Dropdown.js
CHANGED
|
@@ -53,7 +53,7 @@ export const Dropdown = forwardRef(({ children, className, style, collapsesOnSel
|
|
|
53
53
|
const numItems = items.length;
|
|
54
54
|
const numVisibleItems = maxVisibleItems < 0 ? numItems : Math.min(numItems, maxVisibleItems);
|
|
55
55
|
const menuLength = itemLength * numVisibleItems + itemPadding * (numVisibleItems - 1);
|
|
56
|
-
const fixedStyles = getFixedStyles({ isCollapsed, isInverted, maxVisibleItems, menuLength, numItems, orientation });
|
|
56
|
+
const fixedStyles = getFixedStyles({ isCollapsed, collectionPadding, isInverted, maxVisibleItems, menuLength, numItems, orientation });
|
|
57
57
|
const components = asComponentDict(children, {
|
|
58
58
|
collapseIcon: DropdownCollapseIcon,
|
|
59
59
|
expandIcon: DropdownExpandIcon,
|