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
When the position of the tooltip is calculated, the middleware of the arrow and the shift options is applied in the following order:
[flip,shift,arrow,shift,offset]// The first 3 are from internal Shepherd.js settings
This causes an issue with how the arrow is placed, since the arrow middleware should be last in the order.
I've attempted to fix this using the beforeShowPromise and the whenShow functions, but run into issues with applying the arrow middleware in those places. In the beforeShowPromise the step element hasn't been generated yet, meaning the arrow can't be targeted and in the whenShow function the computePosition function for FloatingUI has already been run.
How can I apply shift with padding while still achieving correct arrow placement?
The text was updated successfully, but these errors were encountered:
Reverting back to before the changes made in #3005 fixes the problem. I guess some of the default middleware should still override the user set ones (such as the arrow)
Thanks for letting us know @lalpou. @chuckcarpenter I wonder if we need to not just merge the options but like merge some and push some onto the end etc?
I'm using the following custom FloatingUI options in the "defaultStepOptions":
When the position of the tooltip is calculated, the middleware of the arrow and the shift options is applied in the following order:
This causes an issue with how the arrow is placed, since the arrow middleware should be last in the order.
I've attempted to fix this using the
beforeShowPromise
and thewhenShow
functions, but run into issues with applying the arrow middleware in those places. In thebeforeShowPromise
the step element hasn't been generated yet, meaning the arrow can't be targeted and in thewhenShow
function the computePosition function for FloatingUI has already been run.How can I apply shift with padding while still achieving correct arrow placement?
The text was updated successfully, but these errors were encountered: