diff --git a/src/modules/Dropdown/Dropdown.d.ts b/src/modules/Dropdown/Dropdown.d.ts index e432a550a9..e652855d71 100644 --- a/src/modules/Dropdown/Dropdown.d.ts +++ b/src/modules/Dropdown/Dropdown.d.ts @@ -66,7 +66,7 @@ export interface DropdownProps { defaultUpward?: boolean /** Initial value or value array if multiple. */ - defaultValue?: string | number | (number | string)[] + defaultValue?: string | number | boolean | (number | string | boolean)[] /** A dropdown menu can open to the left or to the right. */ direction?: 'left' | 'right' diff --git a/src/modules/Dropdown/Dropdown.js b/src/modules/Dropdown/Dropdown.js index 81ff95a78c..def550be39 100644 --- a/src/modules/Dropdown/Dropdown.js +++ b/src/modules/Dropdown/Dropdown.js @@ -109,7 +109,8 @@ export default class Dropdown extends Component { defaultValue: PropTypes.oneOfType([ PropTypes.number, PropTypes.string, - PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])), + PropTypes.bool, + PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.bool])), ]), /** A dropdown menu can open to the left or to the right. */