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

InputSwitch: Upgrading to 10.6.2 with Tailwind theme breaks component #6312

Closed
geoffreydv opened this issue Apr 5, 2024 · 0 comments · Fixed by #6347, leoo1992/GeradorQRCode#23 or leoo1992/GeradorQRCode#27
Labels
Component: Tailwind Tailwind specific issue
Milestone

Comments

@geoffreydv
Copy link

geoffreydv commented Apr 5, 2024

Describe the bug

After updating PrimeReact from version 10.5.1 to 10.6.2 the InputSwitch component no longer registers clicks on the switch and as a result does not trigger an onChange event.

It also shows a visible checkbox behind the inputswitch. Checking the checkbox makes the switch change its state.

image

Can be demonstrated on the live documentation page: InputSwitch > Theming > A playground sample with the pre-built Tailwind theme.
I have forked it as a Stackblitz project.

Reproducer

https://stackblitz.com/edit/hbyv3s?file=src%2FApp.jsx

PrimeReact version

10.6.2

React version

18.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

  1. Go to the documentation page on version 10.6.2
  2. InputSwitch > Theming > A playground sample with the pre-built Tailwind theme.
  3. Try clicking the inputswitch to toggle its state
  4. Notice the visible checkbox

Expected behavior

Checkbox should be hidden. Clicking the switch itself should trigger the change event.

@geoffreydv geoffreydv added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 5, 2024
@melloware melloware added Component: Tailwind Tailwind specific issue and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Apr 7, 2024
@melloware melloware added this to the 10.6.4 milestone Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment