Do not submit from keyboard if button is not enabled
This commit is contained in:
parent
e9371b7366
commit
b3930d38f5
1 changed files with 3 additions and 1 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue