96935787c0a2b000acc28e81ec92ca11b36b8c9c
[vchess.git] / client / src / utils / modalClick.js
1 export function processModalClick(e) {
2 // Close a modal when click on it but outside focused element
3 const data = e.target.dataset;
4 if (data.checkbox) document.getElementById(data.checkbox).checked = false;
5 }