Skip to content

Normalizer can't return array #2049

Closed
Closed
@YodaDaCoda

Description

@YodaDaCoda

The normaliser function requires a string to be returned - an array, such as you get for a multiselect, is not permitted. This seems wrong to me.

I initially started using the normalizer to prevent blank strings from being permitted, but I'd like to be able to properly validate multiselect picklist values too.

Your environment

  • version of jquery-validate: 1.17.0

Expected behaviour

I expect the validator to just use the value that's returned from the normalizer, not attempt to sanity-check it. That's my responsibility.

Actual behaviour

A TypeError is thrown and validation stops.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy