Skip to content

[dropdown] Further enhancing automated forceSelection #2302

@jamessampford

Description

@jamessampford

Feature Request

Following #1747 being introduced to automatically ensure forceSelection is true when being generated from a select HTML field, could this potentially be expanded to see if the standard div-based (non-select) dropdown to see whether the hidden input has a required attribute?

Both of these could be further expanded by seeing whether the dropdown is within a .field that has the .required class as well

My suggestion would then be to use the below priority in determining whether forceSelection should be true:

  • Does standard div-based dropdown have required attribute? [if true, stop]
  • Does select dropdown have required attribute? [if true, stop]
  • Is dropdown wrapped in a field with required class?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/featAny feature requests or improvements

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions