Power-Playground / app

Code. Share. Empower.
https://pplay.vercel.app
MIT License
55 stars 12 forks source link

fix: keep cursor when switch language #27

Closed kainstar closed 1 year ago

kainstar commented 1 year ago

Because app use different file path index.js and index.ts to implement different language, the cursor position wouldn't sync between the files.

This PR implement cursor position restore and editor focus after switch language to provide better UX