diff --git a/bigbluebutton-html5/imports/ui/components/dropdown/component.jsx b/bigbluebutton-html5/imports/ui/components/dropdown/component.jsx index f21ca63601..5b9632f766 100644 --- a/bigbluebutton-html5/imports/ui/components/dropdown/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/dropdown/component.jsx @@ -122,6 +122,7 @@ class Dropdown extends Component { trigger = React.cloneElement(trigger, { ref: (ref) => { this.trigger = ref; }, + dropdownIsOpen: this.state.isOpen, dropdownToggle: this.handleToggle, dropdownShow: this.handleShow, dropdownHide: this.handleHide, @@ -130,6 +131,7 @@ class Dropdown extends Component { content = React.cloneElement(content, { ref: (ref) => { this.content = ref; }, 'aria-expanded': this.state.isOpen, + dropdownIsOpen: this.state.isOpen, dropdownToggle: this.handleToggle, dropdownShow: this.handleShow, dropdownHide: this.handleHide, diff --git a/bigbluebutton-html5/imports/ui/components/dropdown/content/component.jsx b/bigbluebutton-html5/imports/ui/components/dropdown/content/component.jsx index b3e4241238..9bcbe4fa69 100644 --- a/bigbluebutton-html5/imports/ui/components/dropdown/content/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/dropdown/content/component.jsx @@ -26,13 +26,15 @@ const defaultProps = { export default class DropdownContent extends Component { render() { const { - placement, className, children, style, + placement, children, className, + dropdownToggle, dropdownShow, dropdownHide, dropdownIsOpen, + ...restProps } = this.props; - const { dropdownToggle, dropdownShow, dropdownHide } = this.props; const placementName = placement.split(' ').join('-'); const boundChildren = Children.map(children, child => cloneElement(child, { + dropdownIsOpen, dropdownToggle, dropdownShow, dropdownHide, @@ -40,10 +42,9 @@ export default class DropdownContent extends Component { return (