Skip to content

feat: improve editing experience in TestStepBlock component#83

Merged
littlefrontender merged 1 commit into
masterfrom
feat/80
Jul 10, 2026
Merged

feat: improve editing experience in TestStepBlock component#83
littlefrontender merged 1 commit into
masterfrom
feat/80

Conversation

@littlefrontender

Copy link
Copy Markdown
Contributor
  • Refactored the editing logic to use a ref for the editing state, allowing for more efficient handling of mouse events.
  • Introduced an anchor ref to manage the block's node-view element without affecting layout.
  • Enhanced mousedown event handling to prevent unintended node selection and improve user interaction.
  • Updated rendering logic to conditionally display the editing interface or preview based on the editing state.
  • Added a view transition ref to maintain focus during layout changes, preventing premature editing termination.

- Refactored the editing logic to use a ref for the editing state, allowing for more efficient handling of mouse events.
- Introduced an anchor ref to manage the block's node-view element without affecting layout.
- Enhanced mousedown event handling to prevent unintended node selection and improve user interaction.
- Updated rendering logic to conditionally display the editing interface or preview based on the editing state.
- Added a view transition ref to maintain focus during layout changes, preventing premature editing termination.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying blocks with  Cloudflare Pages  Cloudflare Pages

Latest commit: f7fdfbd
Status: ✅  Deploy successful!
Preview URL: https://3ac75f9c.blocks-cno.pages.dev
Branch Preview URL: https://feat-80.blocks-cno.pages.dev

View logs

@littlefrontender littlefrontender merged commit 11cdf31 into master Jul 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant