Closed anthonyLukes closed 5 years ago
I ran into this issue as well. Is this a bug? tetherProps should go inside options.
From the source code in DropdownMenu
return ReactTether((ref$ = import$({}, this.props.tetherProps), ref$.options = {
attachment: "top left",
targetAttachment: "bottom left",
constraints: [{
to: 'scrollParent'
}],
}, ref$), this.renderAnimatedDropdown({
dynamicClassName: dynamicClassName
}));
With the
tether
prop set to true I'm trying to override the default "tether-element" classes that get added to the tether drop-down. For my use case I need to conditionally add a css class to change the drop-down z-index when inside of react-modal. In my project I'm also using tether for tooltips and am able to do the followingI tried something similar but it doesn't appear to be changing the tether-element classes. (I tried
tether-props
as well astetherProps
)am I doing something wrong?