From ebcd54783db4a3c2f5e61033d9b124e1838aac73 Mon Sep 17 00:00:00 2001 From: mrwrighty Date: Tue, 24 May 2022 16:16:01 +0100 Subject: [PATCH] Update index.ios.ts Removed callback(null) for CancelAction in iOS. If left in results in datePickerClosed being called. --- packages/datetimepicker/index.ios.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/datetimepicker/index.ios.ts b/packages/datetimepicker/index.ios.ts index 3c1c60bf..4b465b17 100644 --- a/packages/datetimepicker/index.ios.ts +++ b/packages/datetimepicker/index.ios.ts @@ -143,7 +143,7 @@ export class DateTimePicker extends DateTimePickerBase { const okButtonText = options.okButtonText ? options.okButtonText : 'OK'; const cancelActionStyle = style && style.buttonCancelBackgroundColor ? UIAlertActionStyle.Default : UIAlertActionStyle.Cancel; let cancelAction = UIAlertAction.actionWithTitleStyleHandler(cancelButtonText, cancelActionStyle, () => { - callback(null); + //callback(null); }); let okAction = UIAlertAction.actionWithTitleStyleHandler(okButtonText, UIAlertActionStyle.Default, () => { callback(pickerView.date); pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy