So I tested your code, and it seems that the issue happened because you enabled the lightBlockWrapper
support for your block type (i.e. lightBlockWrapper: true
in the support
property), which then doesn’t wrap the block in .wp-block
— check a sample diff here.
And to fix the issue, you’d only need to disable the lightBlockWrapper
support — use lightBlockWrapper: false
or just don’t set lightBlockWrapper
at all..