Skip to content

Commit 14b0c6b

Browse files
committed
Fix empty cell not being updatable
Signed-off-by: worksofliam <[email protected]>
1 parent 6ce2650 commit 14b0c6b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/views/results/html.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,14 @@ document.getElementById('resultset').onclick = function(e){
103103
trWithColumn = target.parentElement;
104104
}
105105
else if (target.tagName.toLowerCase() == "td") {
106-
// get the inner div
106+
// Usually means it is blank
107+
if (!target.firstChild) {
108+
// Add a div to the cell
109+
const newDiv = document.createElement("div");
110+
newDiv.innerText = '';
111+
target.appendChild(newDiv);
112+
}
113+
107114
originalValue = target.firstChild.innerText;
108115
editableNode = target;
109116
trWithColumn = target;

0 commit comments

Comments
 (0)