mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-04 00:42:16 +02:00
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:
parent
c804c65515
commit
54ae45edb9
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue