Skip to content

Handle double clicking a checkbox#720

Open
SharonStrats wants to merge 1 commit intomainfrom
fix/checkbox-dblclk
Open

Handle double clicking a checkbox#720
SharonStrats wants to merge 1 commit intomainfrom
fix/checkbox-dblclk

Conversation

@SharonStrats
Copy link
Contributor

Ticket #124.

You can test this on a Tracker in the settings there is a place to check public and private indexes. This triggered teh error for me.

Copilot AI review requested due to automatic review settings March 19, 2026 06:54
Copy link
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

This PR addresses SolidOS/solid-ui issue #124 by preventing double-clicks on an editable checkbox from triggering overlapping kb.updater.update() operations, which can lead to inconsistent UI state and update errors.

Changes:

  • Add an isUpdating guard to ignore additional clicks while an update is in progress.
  • Disable the checkbox button during the update and re-enable it in the update callback.

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

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +1882 to +1889
let isUpdating = false // Prevent concurrent updates on double-click

const boxHandler = function (_e) {
if (isUpdating) {
return // Ignore clicks while update is in progress
}
isUpdating = true
input.disabled = true // Disable button to provide user feedback
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.

2 participants