Closed (fixed)
Project:
Layout Builder +
Version:
2.1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
28 Feb 2024 at 19:28 UTC
Updated:
14 Mar 2024 at 16:29 UTC
Jump to comment: Most recent
Say we have a block that has an image wrapped in a link. The block isn't draggable because browsers have a default behaviour of being able to drag links. Also, the links can interfere with clicking the contextual menu.
Let's just disable links altogether while editing blocks like we do with making it to where the user can't select the text inside the block.
Comments
Comment #3
tim bozeman commentedComment #4
hctomI just created a follow-up to this ticket: #3424578: Disable interactive elements in blocks to allow dragging - this is needed because this issue only handles disabling of links in blocks, but there are more interactive elements, which may interfere with dragging behavior. In addition: The custom solution introduced with this ticket should be replaced with core's implementation in
layout_buildermodule to disable interactive elements in blocks in layout builder UI.Comment #5
tim bozeman commentedOooo that is a great call out! Thank you!