I have the following logic implemented to control the state of the button according to the length of the user text input.
export function phoneInput_input(event) {
if (isValidPhone($w("#phoneInput").value)) {
$w("#btnVerf").enable()
}else{
$w("#btnVerf").disable()
}
function isValidPhone (input) {
return input.length === 8
}
}
It had been working fine for months and suddenly stopped working a few day ago.
This issue only happens on Safari.
Could anyone help?