Avoid type="email" for multi emails. (#1933)
* Avoid type="email" for multi emails. * A smaller change for the same result
This commit is contained in:
Родитель
d0f72920b0
Коммит
682e52bdcd
|
@ -109,6 +109,9 @@ EMAIL_ADDRESSES_REGEX = EMAIL_ADDRESS_REGEX + '([ ]*,[ ]*' + EMAIL_ADDRESS_REGEX
|
|||
|
||||
MULTI_EMAIL_FIELD_ATTRS = {
|
||||
'title':"Enter one or more comma-separated complete email addresses.",
|
||||
# Don't specify type="email" because browsers consider multiple emails
|
||||
# invalid, regardles of the multiple attribute.
|
||||
'type': 'text',
|
||||
'multiple': True,
|
||||
'placeholder': 'user1@domain.com, user2@chromium.org',
|
||||
'pattern': EMAIL_ADDRESSES_REGEX
|
||||
|
|
Загрузка…
Ссылка в новой задаче