Implemented multi-move possibility in a moves list => better support for multi-moves...
[vchess.git] / client / src / utils / modalClick.js
CommitLineData
6808d7a1 1export function processModalClick(e) {
dcd68c41
BA
2 // Close a modal when click on it but outside focused element
3 const data = e.target.dataset;
6808d7a1 4 if (data.checkbox) document.getElementById(data.checkbox).checked = false;
dcd68c41 5}