Skip to content

[ BUG ] #396

@spylefkaditis

Description

@spylefkaditis

I'm not sure if this is a bug, but according to https://rnr-docs.vercel.app/components/alert-dialog/

The AlertDialogAction extends the Pressable props. So I'd expect something like this to work.

          <AlertDialogAction
            onPress={handleOnPress}
            className={buttonVariants({ variant: 'destructive' })}>
            <Text>Dismiss</Text>
          </AlertDialogAction>

However the onPress is never called unless I add the asChild prop. Is this a misunderstanding on my part or is it a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions