Prevent user id field from being dragged into field group#1895
Conversation
WalkthroughThe recent changes to the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SortableList
participant DraggableItems
User->>SortableList: Initiate drag
SortableList->>DraggableItems: Check if item is draggable
alt Item is draggable
DraggableItems-->>User: Allow drag
else Item is not draggable
DraggableItems-->>User: Prevent drag action
end
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Thanks for working on this @AbdiTolesa.
I moved some code around and fixed an issue where you could still drag fields beside a user ID field in a field group that way.
The user ID check makes more sense where the hidden field check is, and the function groupIncludesBreakOrHidden needed to also start checking for user id fields since that helper function covers the similar issue with hidden fields.
I think this is good to go now.
🚀
Thanks @Crabcyborg! |
Fix https://github.com/Strategy11/formidable-pro/issues/5225