@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.
@@ -1103,7 +1103,11 @@ const StyledDropdownList = styled.div`
1103
1103
  }};
1104
1104
  height: ${props => {
1105
1105
  if (props.heightItems) {
1106
- return props.heightItems * 2 + "rem";
1106
+ const value = props.heightItems * 2 + "rem";
1107
+ if (props.heightBeyond) {
1108
+ return `calc(${value} + 1rem)`;
1109
+ }
1110
+ return value;
1107
1111
  }
1108
1112
  return "initial";
1109
1113
  }};
@@ -1312,7 +1316,6 @@ const Dropdown = properties => {
1312
1316
  }), [ themeProperty, generalThemeProperty, interactionThemeProperty ]);
1313
1317
  useEffect((() => {
1314
1318
  const scrollTo = index => {
1315
- console.log(itemsReferences.current[index].current);
1316
1319
  if (itemsReferences.current[index].current) {
1317
1320
  itemsReferences.current[index].current.scrollIntoView({
1318
1321
  behavior: "smooth",
@@ -1390,6 +1393,7 @@ const Dropdown = properties => {
1390
1393
  left: left,
1391
1394
  level: _level,
1392
1395
  heightItems: heightItems && filterable && filteredSelectables.length < heightItems ? filteredSelectables.length + 1 : heightItems,
1396
+ heightBeyond: filteredSelectables.length > (heightItems || 0),
1393
1397
  width: width
1394
1398
  }, React.createElement("ul", null, filterable && React.createElement("li", {
1395
1399
  style: {