Skip to content

Toggeling FEEL for FeelCheckboxEntry focuses the value as well #347

@marstamm

Description

@marstamm

Describe the Bug

When using a FeelCheckboxEntry or FeelToggleSwitchEntry, when I click on the toggle switch, it focuses the Button that will be replaced.

This is because the Button is part of the label, which has default browser behavior.

Steps to Reproduce

  1. Click on the FEEL toggle, multiple times if necessary
  2. It focuses/toggles the checkbox as well

Expected Behavior

There is a clear distinction between FEEL toggle and checkbox toggle, e.g. by moving the button out of the label tag.

Reported here: camunda/camunda-modeler#4154 (comment)
related to camunda/camunda-modeler#3622

Environment

  • Host (Browser/Node version), if applicable: [e.g. MS Edge 18, Chrome 69, Node 10 LTS]
  • OS: [e.g. Windows 7]
  • Library version: [e.g. 2.0.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogQueued in backlogbugSomething isn't workingspring cleaningCould be cleaned up one dayux

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions