keystonejs / keystone-classic

Node.js CMS and web app framework
http://v4.keystonejs.com
MIT License
14.65k stars 2.21k forks source link

Issue with punycode for email fields #4928

Open followyouhome opened 5 years ago

followyouhome commented 5 years ago

Before

When user trying to insert email with cyrillic symbols we can get weird behaviour with dynamic punycode encoding

Expected behavior

Input w/o changes and error on save

Expected

Actual/Current behavior

Cursor position change and xn--

Actual

Steps to reproduce the actual/current behavior

Environment

Used latest Keystone demo with new 4.1.0 release

Software Version
Keystone 4.1.0
Node.js 10.15.0
Browser Chrome 76.0.3809.0