Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
labelledBy={this.labelId}
hidden={!this.show}
ref={el => {
this._menu = el
}}
onSelect={this.handleMenuSelect}
onDismiss={this.handleMenuDismiss}
>
{children}
)
return (
{safeCloneElement(this.props.trigger, {
role: 'button',
tabIndex: 0,
ref: c => {
this._trigger = c
},
'aria-haspopup': true,
id: this.labelId
onSelect={this.handleMenuSelect}
onKeyDown={createChainedFunction(onKeyDown, this.handleMenuKeyDown)}
onFlyoutDismiss={this.handleFlyoutDismiss}
ref={el => {
this._menu = el
menuRef(el)
}}
>
{children}
)
return (
{
this._popover = el
popoverRef(el)
}}
>
{safeCloneElement(this.props.trigger, {
role: 'button',
ref: el => { this._trigger = el },
'aria-haspopup': true,
id: this._labelId
})}