You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Modal not placed by default on body based on documentation #841
Root (parent) element where the modal will be appended as a last child.
Type: string | HTMLElement
Default: document.body
Current Behavior
Modal is set as a sibling next to the body tag.
Steps to reproduce
Use default configurations for the cookieconsent
Proposed fix or additional info.
Workaround:
Set root: 'body' to get the desired result
Additional info: #816 provided some changes how the modal is injected. Previously (I upgraded from 3.1.0) my modal was always injected at the end of the body tag. After the upgrade I noticed the modal was next to the body tag as a sibling. After I set the root property in the cookie settings to 'body' I got the old behavior.
Activity