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
As far as I can see, the arrow modified assigns the element with id="arrow" to state.elements.arrow. The appyStyles modifier sets state.elements.arrow.style.position='absolute'.
This means, that by following the tutorial the position style for the arrow-element is set twice to absolute: once using CSS and once by Javascript.
Please adjust either the tutorial, not to recommend setting explictly #arrow, #arrow::before { position: absolute }, or the arrow/applyStyle modifiers not to set for the arrow-element position: absolute.
E.g. the example shall set position: absolute for #arrow::before, but not for #arrow itself.
https://popper.js.org/docs/v2/tutorial/#arrow suggests this call:
and
As far as I can see, the
arrow
modified assigns the element withid="arrow"
tostate.elements.arrow
. TheappyStyles
modifier setsstate.elements.arrow.style.position='absolute'
.This means, that by following the tutorial the
position
style for the arrow-element is set twice to absolute: once using CSS and once by Javascript.Please adjust either the tutorial, not to recommend setting explictly
#arrow, #arrow::before { position: absolute }
, or the arrow/applyStyle modifiers not to set for the arrow-elementposition: absolute
.E.g. the example shall set
position: absolute
for#arrow::before
, but not for#arrow
itself.Moved from floating-ui/floating-ui#1528.
The text was updated successfully, but these errors were encountered: