Dinoop Mathew

Results 1 comments of Dinoop Mathew

`modal` object should be initialized out of the click event, in this way it worked for me. ``` const modalEle: HTMLElement = document.querySelector('#js-modal'); const modal = new Modal(modalEle, {}); document.querySelector('.close-button').addEventListener('click',...