@pushwoosh/dumb-components 1.1.60 → 1.1.61

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.
@@ -10,10 +10,11 @@ export const DropdownMenu = ({
10
10
  isScrollable,
11
11
  menuZIndex,
12
12
  menuPlacement,
13
+ openOnMount = false,
13
14
  fullWidth,
14
15
  children
15
16
  }) => {
16
- const [isOpen, setIsOpen] = useState(false);
17
+ const [isOpen, setIsOpen] = useState(openOnMount);
17
18
  const [width, setWidth] = useState(null);
18
19
  const {
19
20
  refs,
@@ -9,6 +9,7 @@ export type HandlerProps = {
9
9
  export type DropdownMenuProps = {
10
10
  color?: Color.CLEAR | Color.FROZEN;
11
11
  isScrollable?: boolean;
12
+ openOnMount?: boolean;
12
13
  menuZIndex?: number;
13
14
  menuPlacement?: Placement;
14
15
  fullWidth?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/dumb-components",
3
- "version": "1.1.60",
3
+ "version": "1.1.61",
4
4
  "description": "React components to build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",