Closed oyeanuj closed 6 years ago
:wave: @oyeanuj.
I noticed that when children are passed to the
component, they are being accessed/rendered even when the mounted is false.
Demo four shows usage of the mounted
property working as expected: the modal is not rendered when mounted={false}
. So I either don't understand your question or you might have a bug in your implementation?
Closing as stale.
Hi @davidtheclark,
I noticed that when
children
are passed to the<AriaModal />
component, they are being accessed/rendered even when themounted
is false. I was a little surprised by that, and was wondering if that is by design.If yes,
mounted
section so that folks are aware?AriaModal
component can take a function as a child and let it know if it ismounted
or not?Thanks!