Skip to content

When the theme is iOS and in touch mode, the TabBarLink's onClick event will trigger twice. #263

@lopo12123

Description

@lopo12123

Check that this is really a bug

  • I confirm

Reproduction link

https://github.com/konstaui/konsta

Bug description

When the theme is iOS and in touch mode, the TabbarLink's onClick event fires twice; however, this issue does not occur when the theme is Material or in a desktop browser view.

Steps to reproduce:

  1. Locate the file kitchen-sink/react/pages/Tabbar.jsx and modify a few lines to add log information.

  2. In the iOS theme, open the browser's devtools and change the device to any mobile device (e.g., I selected an iPhone 12 Pro). Clicking the tab will show two log entries.

Image
20260212001257_rec_.mp4

This seems to be related to the processing after hasHighlight, but I don't know how to fix it yet.

Image

Expected Behavior

No response

Actual Behavior

No response

Konsta UI version

5.0.6

Platform/Target and Browser Versions

chrome

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Konsta UI issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    ReactIssue with Tailwind Mobile React

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions