Do not submit from keyboard if button is not enabled
This commit is contained in:
parent
ba85483d6d
commit
3225719c65
1 changed files with 3 additions and 1 deletions
|
|
@ -164,7 +164,9 @@ fun LoginContent(
|
|||
imeAction = ImeAction.Done,
|
||||
),
|
||||
keyboardActions = KeyboardActions(
|
||||
onDone = { onSubmitClicked() }
|
||||
onDone = {
|
||||
if (state.submitEnabled) onSubmitClicked()
|
||||
}
|
||||
),
|
||||
)
|
||||
if (isError) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue