ItsJonQ / g2

✨ An experimental reimagining of WordPress components
http://g2-components.com/
MIT License
105 stars 12 forks source link

Modal: Custom trigger isn't working #275

Open ItsJonQ opened 3 years ago

ItsJonQ commented 3 years ago

Adding a custom trigger component isn't working to toggle modals:

<Modal trigger={<Button>Open Modal</Button>}>
  <ModalHeader>...</ModalHeader>
  <ModalBody>...</ModalBody>
  <ModalFooter>...</ModalFooter>
</Modal>