Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltips Not Opening on Mobile – Missing onclick Support #4786

Open
sorousch9 opened this issue Feb 10, 2025 · 1 comment
Open

Tooltips Not Opening on Mobile – Missing onclick Support #4786

sorousch9 opened this issue Feb 10, 2025 · 1 comment
Labels
components bug a bug in a specific component

Comments

@sorousch9
Copy link

Describe the Bug

Tooltips created with rx.tooltip() do not open on mobile devices. Since mobile screens do not support hover, tooltips should at least be triggered on click/tap.

To Reproduce

  1. Create a tooltip using rx.tooltip() as shown below:
    rx.tooltip(
        rx.button("Hover over me"),
        content="This is the tooltip content.",
    )
  2. Open the application on a mobile device or in a browser's mobile simulation mode.
  3. Tap the button that has a tooltip.
  4. Notice that the tooltip does not appear.

Expected Behavior

On mobile devices, tooltips should open when tapping the trigger element (e.g., a button or an icon). Since hover is not possible on touchscreens, onclick should be supported as a fallback.

Specifics (please complete the following information):

  • **Python Version: 3.13.1
  • **Reflex Version:0.6.8
  • **OS:WSL2
  • **Browser (Optional):All
Copy link

linear bot commented Feb 10, 2025

@adhami3310 adhami3310 added the components bug a bug in a specific component label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
components bug a bug in a specific component
Projects
None yet
Development

No branches or pull requests

2 participants