@gisce/react-ooui 1.5.11 → 1.5.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gisce/react-ooui",
3
- "version": "1.5.11",
3
+ "version": "1.5.12",
4
4
  "files": [
5
5
  "dist",
6
6
  "src",
@@ -64,15 +64,19 @@ function DropdownButton(props: Props) {
64
64
 
65
65
  return (
66
66
  <Menu onClick={handleMenuClick}>
67
- {mustShowSearch && (
68
- <Search
69
- onChange={(e: any) => onSearch(e.target.value)}
70
- onSearch={onSearch}
71
- allowClear
72
- style={{ padding: 5 }}
73
- />
74
- )}
75
- <Menu.ItemGroup title={tooltip}>{menuItems}</Menu.ItemGroup>
67
+ <div>
68
+ {mustShowSearch && (
69
+ <Search
70
+ onChange={(e: any) => onSearch(e.target.value)}
71
+ onSearch={onSearch}
72
+ allowClear
73
+ style={{ padding: 5 }}
74
+ />
75
+ )}
76
+ </div>
77
+ <div style={{maxHeight: 300, overflowY: 'auto'}}>
78
+ <Menu.ItemGroup title={tooltip}>{menuItems}</Menu.ItemGroup>
79
+ </div>
76
80
  </Menu>
77
81
  );
78
82
  }