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 e9371b7366
commit b3930d38f5

View file

@ -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) {