Skip to content

checkbox fires "change" event on programmatic updatesΒ #2739

@mollykreis

Description

@mollykreis

πŸ› Bug Report

This was originally reported to FAST, but the issue was closed because FAST was deprecated.

Original issue: microsoft/fast#5750

πŸ’» Repro or Code Sample

πŸ€” Expected Behavior

Setting a checkbox's checked state programmatically should not trigger a "change" event.

😯 Current Behavior

Setting a checkbox's checked state programmatically triggers a "change" event that has no way of being distinguished from a "change" event triggered by interaction with the checkbox.

πŸ’ Possible Solution

πŸ”¦ Context

We've had to put workarounds into other places within nimble to temporarily ignore "change" events while programmatically setting the state of a checkbox.

🌍 Your Environment

  • OS & Device: [e.g. MacOS, iOS, Windows, Linux] on [iPhone 7, PC]
  • Browser [e.g. Microsoft Edge, Google Chrome, Apple Safari, Mozilla FireFox]
  • Version [e.g. 1.8.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions