Skip to content

Commit

Permalink
fix: adding file using enter emits error (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed May 17, 2022
1 parent 55f1c86 commit 918de7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/editor/FileSelector.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ function focus({ el }: VNode) {
}
function doneAddFile() {
if (!pending.value) return
const filename = pendingFilename.value
if (!/\.(vue|js|ts|css)$/.test(filename)) {
Expand Down

0 comments on commit 918de7f

Please sign in to comment.