sveltejs / v2.svelte.dev

The Svelte v2 website
https://v2.svelte.dev
MIT License
210 stars 79 forks source link

Props editor with zero only #402

Closed korywka closed 5 years ago

korywka commented 5 years ago

Multiple 0 are not printed:

image

Conduitry commented 5 years ago

This is the repo for the old/v2 site (at svelte.technology). The new v3 site which this is a screenshot of is in the main Svelte compiler repo under the site directory - https://github.com/sveltejs/svelte/tree/master/site

There are currently some known issues surrounding the props editor in the v3 site's REPL - one of which is that it doesn't display the initial value of the prop. Props can be any js expression, not just strings, so you'd need to enter this as '00000' or "00000". (This will be more clear once the initial value "world" is displayed in the props editor when you load the REPL.)