mirror of
https://github.com/chinchang/web-maker.git
synced 2025-02-06 06:28:33 +01:00
Merge pull request #508 from chinchang/v5-fix-507
v5: Fix Type-Error on opening Modals
This commit is contained in:
commit
fe6ee271cf
@ -46,7 +46,7 @@ const Modal = ({
|
||||
if (show) {
|
||||
// HACK: refs will evaluate on next tick due to portals
|
||||
setTimeout(() => {
|
||||
const closeButton = this.overlayEl.querySelector(
|
||||
const closeButton = overlayRef.current.querySelector(
|
||||
'.js-modal__close-btn'
|
||||
);
|
||||
if (closeButton) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user