small bug fix with cancel not keep smart field state

This commit is contained in:
David Kennedy 2025-02-28 15:17:19 -05:00
parent 1575d12fb4
commit 8ef862a916
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -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);
})
}