Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jasonvarga opened this issue Nov 13, 2024 · 0 comments
Open

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

jasonvarga opened this issue Nov 13, 2024 · 0 comments
Labels

Comments

@jasonvarga
Copy link
Member

jasonvarga commented Nov 13, 2024

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants