Skip to content

Commit

Permalink
fix(frontend): 노트 자세히 보기에서 노트 작성 폼을 클릭하면 내용이 초기화될 수 있음 (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
noridev committed Jan 15, 2024
1 parent dd6685b commit 6d01ae4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG_CHERRYPICK.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2023xx](CHANGE
- Enhance: 빌트인 테마를 설치하려고 할 때 오류 메시지 개선
- Fix: 장식 추가로 일부 태그를 추가할 수 없음
- Fix: 알림 위젯 필터링이 작동하지 않을 수 있음 (kokonect-link/cherrypick#404)
- Fix: 노트 자세히 보기에서 노트 작성 폼을 클릭하면 내용이 초기화될 수 있음 (kokonect-link/cherrypick#410)

---

Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/src/components/MkPostFormSimple.vue
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ function openAccountMenu(ev: MouseEvent) {
function formClick() {
if ($i) showForm.value = true;

if (props.reply && (props.reply.user.username !== $i.username || (props.reply.user.host != null && props.reply.user.host !== host))) {
if (text.value === '' && props.reply && (props.reply.user.username !== $i.username || (props.reply.user.host != null && props.reply.user.host !== host))) {
text.value = `@${props.reply.user.username}${props.reply.user.host != null ? '@' + toASCII(props.reply.user.host) : ''} `;
}

Expand Down

0 comments on commit 6d01ae4

Please sign in to comment.