We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeef8e8 commit 1494bc8Copy full SHA for 1494bc8
src/components/ApiDocs/display/ApiModal.tsx
@@ -94,7 +94,10 @@ export const ApiModal = ({
94
95
if (typeof window != 'undefined') {
96
window.onclick = function (event) {
97
- if (event.target.className.includes('api-modal-container--open')) {
+ if (
98
+ event.target.classList &&
99
+ event.target.classList.contains('api-modal-container--open')
100
+ ) {
101
closeModal();
102
}
103
};
0 commit comments