diff --git a/src/renderers/DropDownButton.tsx b/src/renderers/DropDownButton.tsx index d7d91e637..ac1f931a2 100644 --- a/src/renderers/DropDownButton.tsx +++ b/src/renderers/DropDownButton.tsx @@ -14,6 +14,8 @@ export interface DropDownButtonProps extends RendererProps { buttons?: Array; caretIcon?: string; iconOnly?: boolean; + defaultIsOpened?: boolean; + closeOnOutside?: boolean; } export interface DropDownButtonState { @@ -22,7 +24,7 @@ export interface DropDownButtonState { export default class DropDownButton extends React.Component { state: DropDownButtonState = { - isOpened: false, + isOpened: this.props.defaultIsOpened || false, }; static defaultProps = { @@ -73,11 +75,12 @@ export default class DropDownButton extends React.Component +
    {children ? children