mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:32:34 +00:00
Do not submit from keyboard if button is not enabled
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user