Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

The Dialog/Modal reports an error when used with next.js #43

Open
firede opened this issue Aug 18, 2020 · 2 comments
Open

The Dialog/Modal reports an error when used with next.js #43

firede opened this issue Aug 18, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@firede
Copy link

firede commented Aug 18, 2020

Describe the bug

The Dialog/Modal reports an error when used with next.js.

To Reproduce

  1. Go to https://y92q9.sse.codesandbox.io/
  2. Open Chrome DevTools Console
  3. See error (Screenshots below)

Code: https://codesandbox.io/s/bumbag-dialog-issue-y92q9?file=/components/TestDialog.tsx

import React from "react";
import { Modal, Button, Card, Box } from "bumbag";

const TestDialog = () => {
  return (
    <Modal.State>
      <Modal.Disclosure use={Button}>Open modal</Modal.Disclosure>
      <Modal>
        <Card>
          <Box>Hello world</Box>
          <Modal.Disclosure use={Button}>Close</Modal.Disclosure>
        </Card>
      </Modal>
    </Modal.State>
  );
};

export default TestDialog;

Expected behavior

Screenshots

Device information (please complete the following information):

  • Device: Macbook Pro
  • OS, version: macOS 10.15.6
  • Browser, version: Chrome 84.0.4147.125

Additional context

@firede
Copy link
Author

firede commented Aug 18, 2020

@jxom jxom added the bug Something isn't working label Aug 25, 2020
@b-gibbs
Copy link

b-gibbs commented Sep 8, 2020

I'm running into this, too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants