Skip to content

Commit 26a8782

Browse files
committed
send null instead of empty string for action sheet message
If the user wants to display only action sheet buttons w/o any text and he sends null as message, the empty string causes an empty title to be shown above the buttons. Having null instead, completely eliminates the empty space.
1 parent af96186 commit 26a8782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/dialogs/dialogs.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ export function action(arg: any): Promise<string> {
445445
actionSheet.delegate = delegate;
446446
actionSheet.showInView(UIApplication.sharedApplication().keyWindow);
447447
} else {
448-
var alertController = UIAlertController.alertControllerWithTitleMessagePreferredStyle(options.message, "", UIAlertControllerStyle.UIAlertControllerStyleActionSheet);
448+
var alertController = UIAlertController.alertControllerWithTitleMessagePreferredStyle(options.message, null, UIAlertControllerStyle.UIAlertControllerStyleActionSheet);
449449

450450
if (options.actions) {
451451
for (i = 0; i < options.actions.length; i++) {

0 commit comments

Comments
 (0)