vuejs / repl

Vue SFC REPL as a Vue 3 component
https://repl-vuejs.vercel.app
MIT License
908 stars 163 forks source link

fix: cancel creating new file #281

Closed btea closed 1 week ago

btea commented 1 week ago

When the file name is empty, it looks weird after the input box loses focus.

image
vercel[bot] commented 1 week ago

@btea is attempting to deploy a commit to the vuejs Team on Vercel.

A member of the Team first needs to authorize it.

pkg-pr-new[bot] commented 1 week ago

Open in Stackblitz

pnpm add https://pkg.pr.new/vuejs/repl/@vue/repl@281

commit: c88c806

vercel[bot] commented 1 week ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
repl ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 7, 2024 1:56pm
sxzz commented 1 week ago

How can make file name empty?

btea commented 1 week ago

For example, if you want to add a new file by adding the add icon, but then want to delete it, you can directly delete the file name and press the enter key. (Currently, in this case, you can only create a file first and then delete it.)