Skip to content

Checkbox crashes with TappedRecognizer without command on IOS #380

@mkshiblu

Description

@mkshiblu

Describe the bug

On StatefulGridHanlder.iOS.cs, if a checkbox has a tapped event handler without a command, it crashes because of not using null check

                        //// TODO: Fix working of native gesture recognizers of MAUI
                        foreach (var item in stateful.GestureRecognizers)
                        {
                            Debug.WriteLine(item.GetType().Name);
                            if (item is TapGestureRecognizer tgr)
                            {
                                tgr.Command.Execute(stateful);
                            }
                        }

iOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions