Fix sidebar item double-clicks overwriting editor data

This commit is contained in:
Oliver Hamlet
2016-03-06 09:06:08 +00:00
parent 864299d3d5
commit ff3e24ca67
+1 -2
View File
@@ -358,8 +358,7 @@ function onSidebarClick(evt) {
case that has happened. */
window.getSelection().removeAllRanges();
const card = document.getElementById(evt.target.getAttribute('data-id'));
if (!card.classList.contains('flip')) {
if (!document.body.hasAttribute('data-editors')) {
document.getElementById(evt.target.getAttribute('data-id')).onShowEditor();
}
}