feat(user): adds validation for changes before updating user profile

This commit is contained in:
2024-12-01 13:11:24 -03:00
parent 5b8bf004fa
commit 371c6037c2
2 changed files with 11 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
(() => {
'use strict'
const personalInformationForm = document.querySelector('#personal-information-form');
const personalInformationSubmitBtn = personalInformationForm.querySelector('button');
personalInformationSubmitBtn.disabled = true;
personalInformationForm.oninput = function (){
personalInformationSubmitBtn.disabled = false;
}
})()