0001-misc-do-not-focus-error-messages-in-form-preview-666.patch
wcs/qommon/static/js/qommon.forms.js | ||
---|---|---|
393 | 393 |
add_js_behaviours($('form[data-live-url], form[data-backoffice-preview]')); |
394 | 394 | |
395 | 395 |
// Form with error |
396 |
const errornotice = document.querySelector('form .errornotice'); |
|
396 |
const errornotice = document.querySelector('form:not([data-backoffice-preview]) .errornotice');
|
|
397 | 397 |
if (errornotice) { |
398 | 398 |
document.body.classList.add('form-with-error'); |
399 | 399 |
errornotice.setAttribute('tabindex', '-1'); |
400 |
- |