sveltejs / sites

Monorepo for the sites in the Svelte ecosystem
https://svelte.dev
MIT License
286 stars 123 forks source link

REPL: if file name input loses focus without contents changing, do nothing #556

Open jamesscottbrown opened 2 months ago

jamesscottbrown commented 2 months ago

Currently, if a user clicks on the the name of a file in the REPL, they are able to edit it; but if they clicks away before typing anything, the contents of the file are deleted. (See https://github.com/sveltejs/sites/issues/552)

This PR prevents this from happening.

vercel[bot] commented 2 months ago

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

Name Status Preview Comments Updated (UTC)
hn ✅ Ready (Inspect) Visit Preview Apr 5, 2024 0:20am
repl ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 5, 2024 0:20am