Do not submit from keyboard if button is not enabled

This commit is contained in:
Benoit Marty
2022-11-24 17:07:46 +01:00
parent ba85483d6d
commit 3225719c65
@@ -164,7 +164,9 @@ fun LoginContent(
imeAction = ImeAction.Done, imeAction = ImeAction.Done,
), ),
keyboardActions = KeyboardActions( keyboardActions = KeyboardActions(
onDone = { onSubmitClicked() } onDone = {
if (state.submitEnabled) onSubmitClicked()
}
), ),
) )
if (isError) { if (isError) {