InteractiveAlert-Xamarin icon indicating copy to clipboard operation
InteractiveAlert-Xamarin copied to clipboard

[Bug] iOS ShowAlert Cancel Action runs after Ok Action

Open bbenetskyy opened this issue 4 years ago • 0 comments

After performing Ok Action at iOS, only, runs Cancel Action

  • Xamarin.Forms - 4.8(latest)
  • Bug Reproduced at iOS (13.6)
  • Tested on Platforms iOS (13.6) and Android (10)
            var alertConfig = new InteractiveAlertConfig
            {
                OkButton = new InteractiveActionButton
                {
                    Title = okButtonText,
                    Action = okButtonAction
                },
                CancelButton = new InteractiveActionButton
                {
                    Title = cancelButtonText,
                    Action = cancelButtonAction
                },
                Title = title,
                Message = message,
                Style = alertStyle,
                IsCancellable = false
            };
            InteractiveAlerts.Instance.ShowAlert(alertConfig);

Expected Behavior:

  • Ok Pressed => Ok Action
  • Cancel Pressed => Cancel Action

Actual Behavior:

  • Ok Pressed => Ok Action, Cancel Action
  • Cancel Pressed => Cancel Action

bbenetskyy avatar Sep 08 '20 09:09 bbenetskyy