sveltejs / svelte

Cybernetically enhanced web apps
https://svelte.dev
MIT License
78.63k stars 4.13k forks source link

Some quirks on REPL ui #9936

Open jangxyz opened 9 months ago

jangxyz commented 9 months ago

Describe the bug

I've been noticing some edge cases in the REPL since the site update, but to my surprise it hasn't been resolved yet.

Several points:

Here's a screen recording capturing all three: ![svelte4-repl-odd - 480p](https://github.com/sveltejs/svelte/assets/52015/31a28821-e1e0-4cb0-a66b-70fc270913c7)

...and a link to the repl, though it could be seen in any other places too.

Concerning #496, issue a) seems like it has something to do with the neocodemirror package by @PuruVJ (really appreciate you work, by the way ;) It doesn't always happen, but I see it frequently when the text cursor moves around the element a lot.

I found that b) is actually resolved in the svelte-5 preview site, so it may be easily solved by merging it with the svelte 4 repl? (svelte-5 playground)

However c) still resides on both repl sites.

Reproduction

https://svelte.dev/repl/2427ce73a39b4c509590549ba34aff5f?version=4.2.8

How to reproduce:

a) try to move a lot around the element, and start adding an element.

b) add a on:click attribute to a div element.

c) open find menu (cmd+f) in light mode

Logs

No response

System Info

svelte4 playground, in Chrome

Severity

annoyance

PuruVJ commented 9 months ago

Thanks for reporting! Will try to fix it soon!