이 문제는 깨끗한 dv 환경에서 100% 재현 가능합니다.
최신 Chrome에서:
dv new enter-submit
http://enter-submit.localhost/session/user1/become
방문
http://enter-submit.localhost/u/user1/preferences/account
이름 변경
엔터 클릭
페이지가 다시 로드됩니다.
/frontend/discourse/app/controllers/preferences.js 파일에서 @martin / @j.jaffeux 님은 이런 것에 대해 어떻게 생각하시나요:
@action
preventSubmit(event) {
event?.preventDefault();
}
<form class="form-vertical" {{on "submit" this.preventSubmit}}>
{{outlet}}
</form>
</section>
이러한 매우 구체적인 경우에서 실제 폼이 아닌 폼을 가지고 있다는 것은 다소 이상해 보입니다.