Do not submit from keyboard if button is not enabled
This commit is contained in:
@@ -164,7 +164,9 @@ fun LoginContent(
|
||||
imeAction = ImeAction.Done,
|
||||
),
|
||||
keyboardActions = KeyboardActions(
|
||||
onDone = { onSubmitClicked() }
|
||||
onDone = {
|
||||
if (state.submitEnabled) onSubmitClicked()
|
||||
}
|
||||
),
|
||||
)
|
||||
if (isError) {
|
||||
|
||||
Reference in New Issue
Block a user