Skip to content

Commit ac81485

Browse files
committed
fix(FileSelector): only mark edited tab as active if it is displayed in the editor below
When adding new files the old selected file is still displayed in the editor, so the active marker should stay only on that tab. ref: vuejs#178 (review)
1 parent 0050dac commit ac81485

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/editor/FileSelector.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function horizontalScroll(e: WheelEvent) {
136136
v-if="(pending === true && i === files.length - 1) || pending === file"
137137
class="file pending"
138138
:class="{
139-
active: store.state.activeFile.filename === file,
139+
active: pending === file,
140140
changed: store.state.files[file]?.changed === true,
141141
}"
142142
>

0 commit comments

Comments
 (0)