accordproject / template-playground

Web Playground for TemplateMark templates
https://playground.accordproject.org
Apache License 2.0
18 stars 22 forks source link

fix(Editor) Cursor Inconsistency and edit lost fix in monaco editor #95

Closed nitro56565 closed 3 months ago

nitro56565 commented 3 months ago

Closes #91

Description

The Monaco editor were experiencing cursor jumping issues and edit lost when updating state using Zustand. The cursor would jump to the top or bottom of the editor, causing a poor user experience. This issue was identified as a result of state updates causing unnecessary re-renders.

Solution

Changes Made (TemplateMarkdown, TemplateModel and AgreementData)

Related Issues

Author Checklist

netlify[bot] commented 3 months ago

Deploy Preview for ap-template-playground ready!

Name Link
Latest commit 915101b6d633268724f079207d4f198b30722c5f
Latest deploy log https://app.netlify.com/sites/ap-template-playground/deploys/66ad2f3d56f2d900086b4008
Deploy Preview https://deploy-preview-95--ap-template-playground.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

nitro56565 commented 3 months ago

@dselman can you please review the code