We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c7d4dc commit 673994fCopy full SHA for 673994f
src/components/edit-pane.tsx
@@ -90,7 +90,7 @@ export default function EditPane({
90
colSpan,
91
original: match[0],
92
defaultValue,
93
- currentValue: valueToKeep,
+ currentValue: valueToKeep.replace(/\s+/g, " "),
94
});
95
}
96
@@ -216,7 +216,7 @@ export default function EditPane({
216
const commonProps = {
217
id: `input-${i}`,
218
placeholder: item.defaultValue.replace(/\s+/g, " "),
219
- value: item.currentValue.replace(/\s+/g, " "),
+ value: item.currentValue,
220
onChange: (e: React.ChangeEvent<AcceptElements>) =>
221
handleInputChange(i, e.target.value),
222
onKeyDown: (e: React.KeyboardEvent<AcceptElements>) =>
0 commit comments