Skip to content

SwirlFormControl: User-Input not marked if the user clicks directly on the input-field #818

Description

@SGlathe

Issue summary

In the Story-Books, the FormControls will focus and mark the users input if clicked on them. However, if the user clicks directly on the input-field that is wrapped by the FormControl, the input will not be marked.

Expected behavior

Clicking inside a FormControl should focus and mark the users input.

Actual behavior

The nested input is always focused, but only marked if any child of or the FormControl itself, except for the input-field, is clicked.

Steps to reproduce the problem

This can be reproduced in the current StoryBook: https://swirl-storybook.flip-app.dev/?path=/docs/components-swirlformcontrol--docs
I will refer to the top-most "Form Control Label" to describe the reproduction-steps.

  1. Input anything.
  2. Click directly on the input-field. It will be focused, but the user-input is not marked.

Specifications

  • Swirl version number: 0.236.0
  • Browser: Firefox, Chrome (current stable versions)
  • Device: PC, Smartphone
  • Operating System: Linux Ubuntu, Android 14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions