fix: autoSave not defined in title input — use save() directly
The @input handler on the title called autoSave() which wasn't in scope. Changed to save() which is available on the Alpine x-data object. The debounce is already handled internally.
This commit is contained in:
@@ -206,7 +206,7 @@
|
|||||||
<div class="page-title-block">
|
<div class="page-title-block">
|
||||||
<span class="page-icon-emoji">📄</span>
|
<span class="page-icon-emoji">📄</span>
|
||||||
<div class="page-title-input" contenteditable="true" id="_titleEl"
|
<div class="page-title-input" contenteditable="true" id="_titleEl"
|
||||||
@input="dirty=true;autoSave()"
|
@input="dirty=true;save()"
|
||||||
@keydown.enter.prevent="focusBlock()"
|
@keydown.enter.prevent="focusBlock()"
|
||||||
@paste.prevent="pastePlain($event)"
|
@paste.prevent="pastePlain($event)"
|
||||||
spellcheck="false">{{ page.title }}</div>
|
spellcheck="false">{{ page.title }}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user