()
| 226 | } |
| 227 | |
| 228 | getContextValue() { |
| 229 | return { |
| 230 | toggle: this.toggle, |
| 231 | isOpen: this.props.isOpen, |
| 232 | direction: |
| 233 | this.props.direction === 'down' && this.props.dropup |
| 234 | ? 'up' |
| 235 | : this.props.direction, |
| 236 | inNavbar: this.props.inNavbar, |
| 237 | disabled: this.props.disabled, |
| 238 | // Callback that should be called by DropdownMenu to provide a ref to |
| 239 | // a HTML tag that's used for the DropdownMenu |
| 240 | onMenuRef: this.handleMenuRef, |
| 241 | onToggleRef: this.handleToggleRef, |
| 242 | menuRole: this.props.menuRole, |
| 243 | }; |
| 244 | } |
| 245 | |
| 246 | getContainer() { |
| 247 | return this.containerRef.current; |
nothing calls this directly
no outgoing calls
no test coverage detected