You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens on all versions of Vendure (AFAICT). Try to create a new product, and type a period . in the product name. The "create" button becomes disabled. If you create the product without the dot, you can later edit the name and put the dot back in.
This is very confusing for users, since there's no explanation why the create button is disabled, especially since there is no real validation error - dots are actually allowed.
To Reproduce
Go to the admin UI -> create new product
Start typing a name, then finish it with a period .
Expected behavior
Dots in the product name should not have any special effects.
Environment (please complete the following information):
@vendure/core version: 2.0.1, 1.9.X
The text was updated successfully, but these errors were encountered:
Yes it's the period being disallowed by the validator. But actually, periods are OK in URLs so we should allow them in slugs:
2.3. Unreserved Characters
Characters that are allowed in a URI but do not have a reserved
purpose are called unreserved. These include uppercase and lowercase
letters, decimal digits, hyphen, period, underscore, and tilde.
This happens on all versions of Vendure (AFAICT). Try to create a new product, and type a period
.
in the product name. The "create" button becomes disabled. If you create the product without the dot, you can later edit the name and put the dot back in.This is very confusing for users, since there's no explanation why the create button is disabled, especially since there is no real validation error - dots are actually allowed.
To Reproduce
.
Expected behavior
Dots in the product name should not have any special effects.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: