gluestack

gluestack Logogluestack

`PopperContext` must be used within `PopoverContext`

manssorr posted this in #support
Open in Discord
Avatar
manssorrOP
Always got this error:
Error: PopperContext must be used within PopoverContext

for this code:
<AlertDialog isOpen={isOpen} onClose={onClose}>
  <AlertDialogBackdrop />
  <AlertDialogContent>
    <AlertDialogHeader><Headin>{title}</Heading></AlertDialogHeader>
    <AlertDialogBody><Text>{errorMessage}</Text></AlertDialogBody>
    {detailsMessage && (
      <Popover trigger={(triggerProps) => (<Icon as={Info} />)}>
        <PopoverBackdrop />
        <PopoverContent>
          <PopoverHeader><Heading>Details</Heading></PopoverHeader>
          <PopoverBody><Text">{detailsMessage}</Text></PopoverBody>
        </PopoverContent>
      </Popover>}
    <AlertDialogFooter>
      <Button onPress={onClose}><ButtonText>Cancel</ButtonText></Button>
    </AlertDialogFooter>
  </AlertDialogContent>
</AlertDialog>
Image

1 Reply