ISSUE DESCRIPTION:
I am trying to use the lib to close a modal dialog whenever a click happens outside the modal(on backdrop), but the dialog itself has a ref for its main functionality.
SNIPPET:
QUESTION:
Is there any workaround to get this work for a node element that already has a ref (for the dialog in the given specific case) ?
ISSUE DESCRIPTION: I am trying to use the lib to close a modal dialog whenever a click happens outside the modal(on backdrop), but the dialog itself has a ref for its main functionality.
SNIPPET:
QUESTION: Is there any workaround to get this work for a node element that already has a ref (for the dialog in the given specific case) ?