Conversation
fix(VE-4232): implement data-cslp mutation observer to manage unique IDs for elements
…ed path If there is a button element on the composed path, then the browser will send a click event on the button when space key is pressed. stopPropagation does not work as this is not a propagated event but something done by the browser. So, whenever a button is detected on the event's composed path, use custom space key handling.
…nside-button fix: space key handling for editable elements inside button
…nside-button fix(VE-5803): sync field after custom space handling
fix: set unique ID on element click
Stage-v3.2.1
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fix(collab): add optional chaining for tree shaking
Aravind-Kumar-cstk
approved these changes
Apr 24, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes aimed at improving the functionality and robustness of the
VisualBuildermodule, primarily focusing on handling duplicate elements, enhancing test coverage, and refining the behavior of content-editable elements. Below is a summary of the most important changes:Fixes
Handling Duplicate Elements
data-cslp-unique-id) to elements with duplicatedata-cslpattributes, enabling more precise identification and interaction. This impacts thehandleBuilderInteractionandupdateFocussedStatefunctions. [1] [2] [3]Enhancements to Content-Editable Fields
handleFieldKeyDownfunction to handle theSpacekey more effectively inbuttonelements and their nested content-editable children. This ensures proper space insertion and synchronization of field data. [1] [2]Testing
buttonandspanelements. These tests validate space insertion and event synchronization. [1] [2]