Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: pressing space in button contenteditable #309

Merged
merged 4 commits into from
Dec 18, 2024

Conversation

faraazb
Copy link
Contributor

@faraazb faraazb commented Dec 11, 2024

This would earlier insert no space and instead send a click event on the button and a mouse-click event to the parent.

This would earlier insert no space and instead send a click event on the button and a mouse-click event to the parent.
Copy link

github-actions bot commented Dec 11, 2024

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 48.06% 6147 / 12790
🔵 Statements 48.06% 6147 / 12790
🔵 Functions 71.81% 214 / 298
🔵 Branches 81.7% 652 / 798
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/visualBuilder/listeners/index.ts 93.05% 100% 100% 93.05% 41-43, 45-46
src/visualBuilder/utils/constants.ts 100% 100% 100% 100%
src/visualBuilder/utils/handleFieldMouseDown.ts 69.9% 89.47% 60% 69.9% 13-24, 26-37, 53-54, 67-71
src/visualBuilder/utils/insertSpaceAtCursor.ts 100% 100% 100% 100%
Generated in workflow #162 for commit 2ec6c9a by the Vitest Coverage Report Action

removed as it would require checking the schema before adding contenteditable attr, also the user can start drag on one element and end drag on another element.
@faraazb faraazb changed the base branch from VC-115/live-editor-support to develop_v3 December 12, 2024 11:42
Copy link
Contributor

@hiteshshetty-dev hiteshshetty-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

@faraazb faraazb merged commit fae6b68 into develop_v3 Dec 18, 2024
7 checks passed
@hiteshshetty-dev hiteshshetty-dev mentioned this pull request Dec 21, 2024
@aravindbuilt aravindbuilt deleted the VE-4434-fix-space-in-button-contenteditable branch January 15, 2025 03:41
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.

3 participants