Files
Luca Félix 9aaaf429d9 fix: 🐛 lift mode duplicate ids lead to incorrect behavior (#3433)
## Bug:

When clicking on the "Lift Mode" Text instead of the toggle itself, since there were multiple `lift-mode` ids before (one for each block), the incorrect toggle would be activated.

https://github.com/shadcn-ui/ui/assets/61006057/261ec82f-9274-4e0a-ac21-5e3aa3ceece3

## Fix:

Instead of the id being static I changes the `id`, as well as the `htmlFor` attributes to `lift-mode-${block.name}`. This prevents duplicate ids, as long as there are no two blocks with the same name.
2024-04-18 06:14:13 +00:00
..
2023-01-24 19:51:29 +04:00
2024-04-05 21:28:05 +04:00
2024-04-05 21:28:05 +04:00
2024-04-05 21:28:05 +04:00
2024-04-05 21:28:05 +04:00
2024-04-05 21:28:05 +04:00
2024-04-05 21:28:05 +04:00
2023-07-04 17:04:22 +04:00
2023-12-22 23:36:59 +04:00
2024-03-22 21:39:33 +04:00
2024-03-22 21:39:33 +04:00
2024-03-22 21:39:33 +04:00
2023-12-22 23:36:59 +04:00
2023-07-04 17:04:22 +04:00
2024-04-05 21:28:05 +04:00
2023-05-19 22:56:49 +04:00
2023-12-22 23:36:59 +04:00
2023-12-22 23:36:59 +04:00
2024-04-05 21:28:05 +04:00
2023-08-07 22:39:16 +04:00
2023-08-07 22:39:16 +04:00
2023-08-07 22:39:16 +04:00
2024-04-05 21:28:05 +04:00