Skip to content

Commit

Permalink
text newValue
Browse files Browse the repository at this point in the history
  • Loading branch information
dbauszus-glx committed Nov 7, 2023
1 parent 284f33b commit 6d2368b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ui/locations/entries/text.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function edit(entry) {
<input
type="text"
maxlength=${entry.edit.maxlength}
value="${entry.value || ''}"
value="${entry.newValue || entry.value || ''}"
placeholder="${entry.edit.placeholder || ''}"
onkeyup=${e => {
entry.newValue = e.target.value
Expand Down
2 changes: 1 addition & 1 deletion lib/ui/locations/entries/textarea.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default entry => {
e.target.style.height = 'auto';
e.target.style.height = e.target.scrollHeight + 'px';
}, 100)}>
${entry.value || ''}`
${entry.newValue || entry.value || ''}`
}

const node = mapp.utils.html.node`
Expand Down

0 comments on commit 6d2368b

Please sign in to comment.