AlaskaAirlines / auro-carousel

Custom element that ....
https://auro.alaskaair.com/components/auro/carousel
Apache License 2.0
0 stars 4 forks source link

auro-carousel: callback after panes are fully loaded #20

Closed jesussilverioea closed 2 years ago

jesussilverioea commented 2 years ago

Is your feature request related to a problem? Please describe.

At the moment we are implementing a shoulder svelte component for our search microsite. I am facing some issues while implementing the a center pane on the selected pane due to not have a way to know when the panes have fully loaded.

Project Link: https://github.com/Alaska-ECommerce/flightsearch-lem-svelte Workaround: https://github.com/Alaska-ECommerce/flightsearch-lem-svelte/blob/main/src/lib/results/ShoulderDates.svelte#L27

At the moment, I played with lifecycle methods in order to wait until the panes are fully loaded. In addition, I also tried to put a setTimout to wait 1 sec for the panes to load. This 2 solutions seem to me hacky and not ideal.

Describe the solution you'd like

Describe alternatives you've considered

jesussilverioea commented 2 years ago

Issue is being tracked by: https://github.com/AlaskaAirlines/auro-carousel/issues/19