[Tabs] Unable to open a Popover using Tab's onActive handler on mobile browser #4376
Labels
bug 🐛
Something doesn't work
component: tabs
This is the name of the generic UI component, not the React module!
Problem description
Unable to open a
Popover
usingonActive
handler on aTab
on mobile browsers. The popover automatically disappears after being momentarily shown.Steps to reproduce
Important: You must use "device mode" in Chrome developer tools, or use Chrome on Android device to reproduce this issue. It is NOT reproducible on desktop.
onActive
callback.open
state of aPopover
Note:
react-tap-event-plugin
is injected. Not sure if that matters in this case.Possible Fix
I'm able to fix this issue by calling
event.preventDefault();
just before invokingtab.props.onActive(tab);
in this line in Tabs.js.Another possibility is If the event object is passed to the
onActive
callback, the application code can callpreventDefault()
itself if needed.Versions
The text was updated successfully, but these errors were encountered: