We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85c2ef9 commit 53eb87aCopy full SHA for 53eb87a
assets/static/history.js
@@ -231,7 +231,7 @@ async function editName(hash) {
231
const cell = document.getElementById(`name-${hash}`);
232
const currentName = entry.name;
233
234
- cell.innerHTML = `<input type="text" class="name-input" value="${currentName}" id="input-${hash}" onblur="saveName('${hash}')" onkeypress="if(event.key==='Enter') saveName('${hash}')">`;
+ cell.innerHTML = `<input type="text" class="name-input" value="${currentName}" id="input-${hash}" onblur="saveName('${hash}')" onkeypress="if(event.key==='Enter') { saveName('${hash}'); event.preventDefault(); }">`;
235
236
const input = document.getElementById(`input-${hash}`);
237
input.focus();
0 commit comments