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
In frontend, we use selectedInstance to observe when data-nav is navigating among the items and after change, call syncImageState on the new instance, causing it to sync with the external window (if available) to make it a seamless transition between items.
However, when removing an item from the items list, we call realignElements that will splice _elements and cause selectedInstance to update, but for some reason selectedInstance gets set to the removed instance, causing the syncImageState to fail.
Manipulated the selected property will make data-nav sync up again and correctly recalculate selected elements and instances.
The text was updated successfully, but these errors were encountered:
In frontend, we use selectedInstance to observe when data-nav is navigating among the items and after change, call syncImageState on the new instance, causing it to sync with the external window (if available) to make it a seamless transition between items.
However, when removing an item from the items list, we call realignElements that will splice _elements and cause selectedInstance to update, but for some reason selectedInstance gets set to the removed instance, causing the syncImageState to fail.
Manipulated the
selected
property will make data-nav sync up again and correctly recalculate selected elements and instances.The text was updated successfully, but these errors were encountered: