bencarr / statamic-hyperlink

Hyperlink is a Statamic addon that expands the default Link fieldtype and allows you to store link text and target options alongside the link destination.
https://statamic.com/addons/bencarr/hyperlink
3 stars 1 forks source link

Fix link type dropdown appearing underneat adjacent Bard set content #10

Closed bencarr closed 1 year ago

bencarr commented 1 year ago

Statamic 4 introduced container queries into some field types and Bard set content. Container queries always create a new stacking context, which introduced a new issue (#9) where the Link Type dropdown would appear underneath adjacent Bard sets.

Adding the append-to-body directive to the dropdown resolves the issue by pushing the dropdown contents out of its parent stacking context and onto the document body.