projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improvements - untested
[vchess.git]
/
client
/
src
/
utils
/
modalClick.js
diff --git
a/client/src/utils/modalClick.js
b/client/src/utils/modalClick.js
index
8e0dca7
..
9693578
100644
(file)
--- a/
client/src/utils/modalClick.js
+++ b/
client/src/utils/modalClick.js
@@
-1,7
+1,5
@@
-export function processModalClick(e)
-{
+export function processModalClick(e) {
// Close a modal when click on it but outside focused element
const data = e.target.dataset;
// Close a modal when click on it but outside focused element
const data = e.target.dataset;
- if (!!data.checkbox)
- document.getElementById(data.checkbox).checked = false;
+ if (data.checkbox) document.getElementById(data.checkbox).checked = false;
}
}