Skip to content

Commit 97313ff

Browse files
committed
🐛 fix: fix the bug of switching views
1 parent 6e3a19d commit 97313ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ui/src/ribbon/ribbon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export class RibbonUI extends HTMLElement {
162162
new ViewActiveConverter(view, style.tab, style.active),
163163
),
164164
onclick: () => {
165-
this.dataContent.activeView = view;
165+
this.app.activeView = view;
166166
},
167167
},
168168
div({ className: style.name }, span({ textContent: new Binding(view.document, "name") })),

0 commit comments

Comments
 (0)