fix(banner): not closed form tag broke JS
This commit is contained in:
parent
2ea45d5dba
commit
d5515fca33
1 changed files with 5 additions and 5 deletions
|
@ -27,7 +27,7 @@
|
|||
%span#banner_auto_switch_error.hidden= t(".detected_error")
|
||||
|
||||
- if user && !user.preferred_domain_demarches_gouv_fr? && requested_from_new_domain?
|
||||
= form_tag(helpers.preferred_domain_path, method: :patch, remote: true, name: "update-preferred-domain")
|
||||
= form_tag(helpers.preferred_domain_path, method: :patch, remote: true, name: "update-preferred-domain") do
|
||||
:javascript
|
||||
document.addEventListener('noticeClosed', function(e) {
|
||||
document.forms['update-preferred-domain'].submit();
|
||||
|
|
Loading…
Reference in a new issue