A slight improvement, instead of changing confirmButton.enabled with onTextChanged, you can use the acceptableInput property to control enabled for confirmButton.
enabled: currentInput.acceptableInput
A slight improvement, instead of changing confirmButton. enabled with onTextChanged, you can use the acceptableInput property to control enabled for confirmButton.
enabled: currentInput. acceptableInput