@plurid/plurid-ui-components-react 0.0.0-10 → 0.0.0-11
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/distribution/index.js
CHANGED
|
@@ -1121,7 +1121,11 @@ const StyledDropdownList = styled__default["default"].div`
|
|
|
1121
1121
|
}};
|
|
1122
1122
|
height: ${props => {
|
|
1123
1123
|
if (props.heightItems) {
|
|
1124
|
-
|
|
1124
|
+
const value = props.heightItems * 2 + "rem";
|
|
1125
|
+
if (props.heightBeyond) {
|
|
1126
|
+
return `calc(${value} + 1rem)`;
|
|
1127
|
+
}
|
|
1128
|
+
return value;
|
|
1125
1129
|
}
|
|
1126
1130
|
return "initial";
|
|
1127
1131
|
}};
|
|
@@ -1330,7 +1334,6 @@ const Dropdown = properties => {
|
|
|
1330
1334
|
}), [ themeProperty, generalThemeProperty, interactionThemeProperty ]);
|
|
1331
1335
|
React.useEffect((() => {
|
|
1332
1336
|
const scrollTo = index => {
|
|
1333
|
-
console.log(itemsReferences.current[index].current);
|
|
1334
1337
|
if (itemsReferences.current[index].current) {
|
|
1335
1338
|
itemsReferences.current[index].current.scrollIntoView({
|
|
1336
1339
|
behavior: "smooth",
|
|
@@ -1408,6 +1411,7 @@ const Dropdown = properties => {
|
|
|
1408
1411
|
left: left,
|
|
1409
1412
|
level: _level,
|
|
1410
1413
|
heightItems: heightItems && filterable && filteredSelectables.length < heightItems ? filteredSelectables.length + 1 : heightItems,
|
|
1414
|
+
heightBeyond: filteredSelectables.length > (heightItems || 0),
|
|
1411
1415
|
width: width
|
|
1412
1416
|
}, React__default["default"].createElement("ul", null, filterable && React__default["default"].createElement("li", {
|
|
1413
1417
|
style: {
|