在自定义用户字段上按回车键会刷新页面并丢失数据

If a user is editing a custom user text field on their profile and presses enter, the page reloads and the data previously entered into the field is lost.

I tried this on Firefox on Mac and Chrome on Linux.

It’s especially disruptive if the field is one that a user might expect to include returns (e.g., a mailing address). Oh, and it throws away data in any other field that text has been added to.

I’d expect that if you press enter it would submit the data, not merely reload the page.

Has it always been this way?

1 个赞

It hasn’t. It reproduces here on meta, but not on my v2.3.0.beta9 +184 instance.

Possible lodash regression, will look tomorrow if no one beats me to it.

4 个赞

So this is not lodash, it seems like it’s been here for quite some time.

3 个赞

Ok that was tricky:

I’m very doubtful it’s a recent regression.

6 个赞