Skip to content

Setting the Value of a Dropdown is Inefficient #2493

@BeksOmega

Description

@BeksOmega

Problem statement

validateOptions_, doClassValidation_, and doValueUpdate_ all loop through the dropdown's options. This is inefficient.

Proposal

validateOptions_ should create a map of Language-Neutral keys to Human-Readable options. That way it could be queried when selecting a value, instead of having to loop through all of the options.

Additional Information

If this change is made option trimming (prefix/suffix matching) would need to be reworked so that the map contains the trimmed options.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions