Support CSS positioning for draggable components
Author: YouakeemCreated May 1, 2025Updated Sep 8, 2026
Labelstype: featurein triage
Description
I am creating a "Position" layout block. It works fine on the frontpage but in the editor the position is always relative no matter what the settings are and it's not possible to override.
Styles are added as inline styles to the block, but position is always overridden to relative
Environment
- Puck version: 0.18.3
Steps to reproduce
- Create an
inlineblock and applystyle={{position: 'absolute}}to it
inline: true
render: ({ puck, ...props }) => {
return (
<div ref={puck?.dragRef} {...props} style={{position: 'absolute'}}>
<DropZone zone="position-content" />
</div>
);
},- Run in the application in development mode...
- Navigate to the page where the component is rendered...
What happens
Block is still relatively positioned
What I expect to happen
Block should be absolutely positioned
Additional Media
Source: puckeditor/puck