Skip to content

Commit

Permalink
fix(modals): make inputPlaceholder set a placeholder and not text (#2474
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jcesarmobile authored Feb 24, 2020
1 parent 255a046 commit 8002791
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public void run() {
final AlertDialog.Builder builder = new AlertDialog.Builder(context);
final EditText input = new EditText(context);

input.setText(promptInputPlaceholder);
input.setHint(promptInputPlaceholder);

builder
.setMessage(message)
Expand Down
2 changes: 1 addition & 1 deletion ios/Capacitor/Capacitor/Plugins/Modals.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class CAPModalsPlugin : CAPPlugin {
DispatchQueue.main.async {

alert.addTextField { (textField) in
textField.text = inputPlaceholder
textField.placeholder = inputPlaceholder
}

alert.addAction(UIAlertAction(title: okButtonTitle, style: UIAlertAction.Style.default, handler: { (action) -> Void in
Expand Down

0 comments on commit 8002791

Please sign in to comment.