Skip to content

Commit c5d9bbd

Browse files
committed
fix(dialog): enable 'positive' button
Broken in cd49b40
1 parent 580ef0b commit c5d9bbd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

AnkiDroid/src/main/java/com/ichi2/utils/AlertDialogFacade.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ fun AlertDialog.input(
364364
// handle validation errors
365365
val validationError = validator?.invoke(input)
366366
this@input.getInputTextLayout().error = validationError?.error
367-
this@input.positiveButton.isEnabled = validationError == null
367+
this@input.positiveButton.isEnabled = validationError?.error == null
368368
if (validationError != null) return@doOnTextChanged
369369

370370
// no errors, see if we should fire the callback on every keypress

0 commit comments

Comments
 (0)