Skip to content

Commit

Permalink
fix(core): fix handleViewOpen
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshinesmilelk committed Dec 18, 2023
1 parent e31f848 commit 32badf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mana-core/src/view/default-slot-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export class DefaultSlotView extends BaseView implements SlotView, StatefulView
}

protected handleViewOpen(instance: View, option: ViewOpenOption = { reveal: true }) {
if (option?.reveal) {
if ({ reveal: true, ...option }.reveal) {
this.active = instance;
}
}
Expand Down

0 comments on commit 32badf4

Please sign in to comment.