diff --git a/components/admin/AdminPostForm.vue b/components/admin/AdminPostForm.vue index 14d6e23..9eaf1cb 100644 --- a/components/admin/AdminPostForm.vue +++ b/components/admin/AdminPostForm.vue @@ -47,6 +47,7 @@ const isRestoringAutosave = ref(false) const isSettingsOpen = ref(true) const tagInput = ref('') const isTagInputComposing = ref(false) +const isTitleInputComposing = ref(false) const activeMediaPickerTab = ref('upload') const selectedMediaPickerUrl = ref('') const savedPostSnapshot = ref('') @@ -562,9 +563,15 @@ const dropFeaturedImage = async (event) => { /** * 제목 입력 후 본문 에디터로 이동 + * @param {KeyboardEvent} event - 키보드 이벤트 * @returns {void} */ -const focusContentEditor = () => { +const focusContentEditor = (event) => { + if (event?.isComposing || isTitleInputComposing.value || event?.keyCode === 229) { + return + } + + event?.preventDefault() blockEditor.value?.focusFirstBlock() } @@ -716,7 +723,9 @@ defineExpose({ type="text" placeholder="제목" required - @keydown.enter.prevent="focusContentEditor" + @keydown.enter="focusContentEditor" + @compositionstart="isTitleInputComposing = true" + @compositionend="isTitleInputComposing = false" >
{

- {{ post.tags.join(', ') || '-' }} +
+ + {{ tag }} + +
+ - {{ formatDate(post.updatedAt) }}