Skip to content

Asset container validation rules doesn't let you type a comma #11122

@jasonvarga

Description

@jasonvarga

Bug description

When adding a validation rule to an asset container, a comma will complete the rule.

This is because we're using a taggable fieldtype. Technically it's working as intended.

How to reproduce

  • Edit asset container
  • Try adding a validation rule like mimes:jpg,png.

You can't. As soon as you hit the first , it will add mimes:jpg as the rule.

Logs

No response

Environment

Statamic v5.38.0

Installation

Fresh statamic/statamic site via CLI

Additional details

A workaround is to add the validation rule to the yaml:

validation:
  - 'mimes:jpg,png'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions