Browse Source

Read Only sur champs déjà enregistrés

Sangfroid 8 months ago
parent
commit
ec53a041c9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      assets/js/addCollectionVanilla.js

+ 1 - 0
assets/js/addCollectionVanilla.js

@@ -4,6 +4,7 @@ import { autocomplete } from './autocomplete'
     document
     document
         .querySelectorAll('ul.collection-form li')
         .querySelectorAll('ul.collection-form li')
         .forEach(item => {
         .forEach(item => {
+            console.log(item.querySelector('input').readOnly = true)
             addDeleteLink(item)
             addDeleteLink(item)
         });
         });