Modal component defaultToggled and open attribute
NYCJacob opened this issue · comments
Jacob Sherman commented
I am trying to have a modal default to open but allow the user to dismiss the modal. When I use <Modal opened={true} the onClose onToggle(false) function does not close the modal. Passing defaultToggled with Toggler doesn't seem to effect the modal being opened. I was hoping I could pass defaultToggled={true} but that doesn't seem to be allowed.
Great project!
Greg Bergé commented
Hello @NYCJacob, can you provide a reproduction example (using CodeSanbox for an example). Thanks!
Greg Bergé commented
Inactive, I close it.