legacy-views icon indicating copy to clipboard operation
legacy-views copied to clipboard

Bootstrap rendered form shows fields errors at the top

Open ipsingh06 opened this issue 5 years ago • 0 comments

What I'm trying to achieve

I expected only non-field errors to be displayed at the top.

Steps to reproduce the problem

  1. Go to the Saleor demo: https://demo.getsaleor.com/en/account/login/
  2. Empty the email and password fields and click 'Log In'

What I expected to happen

Only non-field errors to show at the top (in this case, nothing)

There's already a fix for this in place in saleor.core.utils.form_renderer.FormRenderer. However, it is not kicking in because the bootstrap settings are misnamed. The fix is to rename the following in settings.py: bootstrap4 -> BOOTSTRAP4

ipsingh06 avatar Jul 28 '19 07:07 ipsingh06