Skip to content

Commit

Permalink
fix(ui): bind attributes to PublishWidgetList list (#2952)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin authored Sep 11, 2024
1 parent dd6fab8 commit dbf743a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/publish/PublishWidgetList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function isFirstItem(index: number) {
<template v-if="isHydrated && currentUser">
<PublishWidget
v-for="(_, index) in threadItems" :key="`${draftKey}-${index}`"
v-bind="$attrs"
:draft-key="draftKey"
:draft-item-index="index"
:expanded="isFirstItem(index) ? expanded : true"
Expand Down
2 changes: 1 addition & 1 deletion pages/[[server]]/@[account]/[status].vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ onReactivated(() => {
<PublishWidgetList
v-if="currentUser"
ref="publishWidget"
border="y base"
class="border-y border-base"
:draft-key="replyDraft!.key"
:initial="replyDraft!.draft"
@published="refreshContext()"
Expand Down

0 comments on commit dbf743a

Please sign in to comment.