Edit JS to grab the first input as a source when cloning, since we now have a single input on the page when we first land on nameservers

This commit is contained in:
Rachid Mrad 2023-09-21 17:25:38 -04:00
parent c804c65515
commit 54ae45edb9
No known key found for this signature in database
GPG key ID: EF38E4CEC4A8F3CF

View file

@ -246,7 +246,7 @@ function handleValidationClick(e) {
addButton.addEventListener('click', addForm)
function addForm(e){
let newForm = serverForm[2].cloneNode(true)
let newForm = serverForm[0].cloneNode(true)
let formNumberRegex = RegExp(`form-(\\d){1}-`,'g')
let formLabelRegex = RegExp(`Name server (\\d){1}`, 'g')
let formExampleRegex = RegExp(`ns(\\d){1}`, 'g')