Skip to content

Commit

Permalink
Fixed passwordtextbox textchanged function not working previously
Browse files Browse the repository at this point in the history
  • Loading branch information
ghu999 committed Jan 30, 2025
1 parent 6e88666 commit 0b7d115
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions appinventor/components-ios/src/PasswordTextBox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ class PasswordTextBoxAdapter: NSObject, AbstractMethodsForTextBox, UITextFieldDe
if let range = Range(range, in: textField.text ?? "") {
textField.text?.replaceSubrange(range,with: string)
}
textField.sendActions(for: .editingChanged)
}
return false
}
Expand All @@ -141,6 +142,7 @@ class PasswordTextBoxAdapter: NSObject, AbstractMethodsForTextBox, UITextFieldDe
_field.addTarget(base, action: #selector(TextBoxBase.textFieldChanged(_:)), for: .editingChanged)
}


func textFieldDidBeginEditing(_ textField: UITextField) {
_base?.GotFocus()
}
Expand Down

0 comments on commit 0b7d115

Please sign in to comment.