Skip to content

fix(toggle): id mismatch between toggle and its label#19

Merged
Arthurk12 merged 1 commit intobigbluebutton:developfrom
Arthurk12:issue/17
Apr 8, 2026
Merged

fix(toggle): id mismatch between toggle and its label#19
Arthurk12 merged 1 commit intobigbluebutton:developfrom
Arthurk12:issue/17

Conversation

@Arthurk12
Copy link
Copy Markdown
Member

@Arthurk12 Arthurk12 commented Apr 8, 2026

What does this PR do?

When an id was passed to the toggle, the spread operator used to drill props into the underlying Material UI toggle was also overriding the internally calculated id, causing a mismatch with the label and preventing clicks on it from triggering the toggle action.

The fix removes id from the restProps object, preventing it from overriding the correct internal id.

Closes

Closes #17

When an id was passed to the toggle, the spread operator used to drill
props into the underlying Material UI toggle was also overriding the
internally calculated id, causing a mismatch with the label and preventing
clicks on it from triggering the toggle action.

The fix removes id from the restProps object, preventing it from
overriding the correct internal id.
@Arthurk12 Arthurk12 changed the base branch from main to develop April 8, 2026 13:00
@Arthurk12 Arthurk12 merged commit 838f81a into bigbluebutton:develop Apr 8, 2026
@Arthurk12 Arthurk12 deleted the issue/17 branch April 8, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant