[PR #1115] [MERGED] Switch: clicking a label changes a value of the corresponding switch #2520

Open
opened 2026-01-29 18:19:14 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/radzenhq/radzen-blazor/pull/1115
Author: @Cosmatevs
Created: 8/15/2023
Status: Merged
Merged: 8/15/2023
Merged by: @enchev

Base: masterHead: switch-with-label


📝 Commits (1)

  • 39d8e4e Switch: make clicking a label change a value of the corresponding switch (by Name property; as in the case of ordinary checkboxes)

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 Radzen.Blazor/RadzenSwitch.razor (+1 -1)

📄 Description

As you can observe in the login demo, clicking the Remember me label doesn't change the value of the switch. In case of ordinary checkboxes it would change the value.
Here's a pull request to make labels for switches behave as they do for checkboxes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/radzenhq/radzen-blazor/pull/1115 **Author:** [@Cosmatevs](https://github.com/Cosmatevs) **Created:** 8/15/2023 **Status:** ✅ Merged **Merged:** 8/15/2023 **Merged by:** [@enchev](https://github.com/enchev) **Base:** `master` ← **Head:** `switch-with-label` --- ### 📝 Commits (1) - [`39d8e4e`](https://github.com/radzenhq/radzen-blazor/commit/39d8e4e67d8436548af50b70ef89895adc5d576d) Switch: make clicking a label change a value of the corresponding switch (by Name property; as in the case of ordinary checkboxes) ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `Radzen.Blazor/RadzenSwitch.razor` (+1 -1) </details> ### 📄 Description As you can observe in the [login ](https://blazor.radzen.com/login)demo, clicking the _Remember me_ label doesn't change the value of the switch. In case of ordinary checkboxes it would change the value. Here's a pull request to make labels for switches behave as they do for checkboxes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 18:19:14 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#2520