This is not really an answer to my original question, but an easy workaround and it does the job nicely:
const trigger = <div
ref={this.triggerRef as React.RefObject<HTMLDivElement>}
className={className}
style={style}
/>
This is not really an answer to my original question, but an easy workaround and it does the job nicely:
const trigger = <div
ref={this.triggerRef as React.RefObject<HTMLDivElement>}
className={className}
style={style}
/>