Skip to content

fix: fix layer toggle in dual map view#3464

Merged
igorDykhta merged 1 commit into
masterfrom
igr/checkbox-regression
May 26, 2026
Merged

fix: fix layer toggle in dual map view#3464
igorDykhta merged 1 commit into
masterfrom
igr/checkbox-regression

Conversation

@igorDykhta
Copy link
Copy Markdown
Collaborator

For #3462

Fix regression where layers can be turned on but not off in split map view. The Checkbox component refactor (#3440) inadvertently changed the hidden input type from "checkbox" to "radio" when the type prop is "radio", preventing onChange from firing on uncheck.

Signed-off-by: Ihor Dykhta <ihordykhta@Ihors-MacBook-Pro.local>
@igorDykhta igorDykhta self-assigned this May 26, 2026
Copilot AI review requested due to automatic review settings May 26, 2026 22:33
@igorDykhta igorDykhta added the 3.3 Kepler.gl 3.3 release label May 26, 2026
@igorDykhta igorDykhta requested review from ilyabo and lixun910 May 26, 2026 22:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a regression in split/dual map view where layer visibility could be toggled on but not toggled off, caused by the checkbox refactor changing the underlying hidden input to type="radio" for radio-styled checkboxes.

Changes:

  • Force the underlying hidden input in Checkbox to always render as type="checkbox" to ensure uncheck toggles fire onChange as expected.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/src/common/checkbox.tsx
@igorDykhta igorDykhta merged commit 8c4b5f8 into master May 26, 2026
9 checks passed
@igorDykhta igorDykhta deleted the igr/checkbox-regression branch May 26, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.3 Kepler.gl 3.3 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants