Skip to content

[Bug]: onCheckChange triggers when Checkbox state is updated programmatically #41505

@pragarthi-bits

Description

@pragarthi-bits

Is there an existing issue for this?

  • I have searched the existing issues

Description

The onCheckChange event of a Checkbox widget is triggered even when its checked state is changed programmatically (e.g. via JS or by updating the Default State property).
This causes actions to run without any user interaction.

Image

Steps To Reproduce

  1. Create a new Appsmith application
  2. Drag a Checkbox widget onto the canvas
  3. Add an action to the Checkbox’s onCheckChange event (for example, show an alert)
  4. Add a Button widget
  5. Set the Button’s onClick action to update the Checkbox state programmatically (e.g. change the Default State or checked value)
  6. Click the Button

Public Sample App

No response

Environment

Production

Severity

Low (Cosmetic UI issues)

Issue video log

No response

Version

Cloud

Metadata

Metadata

Labels

BugSomething isn't workingCommunity Reportedissues reported by community membersLowAn issue that is neither critical nor breaks a user flowNeeds TriagingNeeds attention from maintainers to triageProduction

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions