mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-24 19:48:36 +02:00
small bug fix with cancel not keep smart field state
This commit is contained in:
parent
1575d12fb4
commit
8ef862a916
1 changed files with 2 additions and 0 deletions
|
@ -334,9 +334,11 @@ export class NameserverForm {
|
|||
}
|
||||
|
||||
resetInputValuesInElement(domElement) {
|
||||
const inputEvent = new Event('input');
|
||||
let textInputs = domElement.querySelectorAll("input[type='text']");
|
||||
textInputs.forEach(input => {
|
||||
input.value = input.dataset.initialValue;
|
||||
input.dispatchEvent(inputEvent);
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue