Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

checkboxradio: label of checkbox on external panel is not found #7292

@frequent

Description

@frequent

Inside the checkboxradio widget the following code is run:

label = parentLabel.length ? parentLabel :
        input
          .closest( "form, fieldset, :jqmData(role='page'), :jqmData(role='dialog') )
          .find( "label" )
          .filter( "[for='" + escapeId( input[0].id ) + "']" )
          .first(),

If the checkbox is inside an external panel and happens to be outside of a form/fieldset, the bindings on the label will not be set.

Can be fixed by appending , :jqmData(role='panel')" to the selector but I'm also wondering whether checking siblings makes more sense to identify the label than crawling the document altogether. I cannot think of too many use cases where the label is out in the wild.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions