[ BUG ] : AppinioSwiper cardBuilder's index parameter didnt return correct index for each of cards #265
Labels
Appinio swiper
This label is used to indicate that this issue belongs to Appinio swiper plugin
AppinioSwiper
Describe the bug
When cardBuilder function was called, it didn't pass the correct index on cardBuilder's second prop (which is for storing index).
for example, we have 5 items on the swiper widget, when cardBuilder is executed, the passed index is wrong.
card builder WILL be executed 5 times, I expect the index value for every interaction on card builder Iteration to be :
instead, the passed index value will be:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
For every of cardBuilder iteration, it should return correct index.
if current iteration is first iteration, index should be 0, if second index should be 1, and so on.
Screenshots
![image](https://private-user-images.githubusercontent.com/23404675/320222590-4b5f39d4-82a9-43fd-b254-eeb3bba36b46.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwNDM1MDgsIm5iZiI6MTcyMTA0MzIwOCwicGF0aCI6Ii8yMzQwNDY3NS8zMjAyMjI1OTAtNGI1ZjM5ZDQtODJhOS00M2ZkLWIyNTQtZWViM2JiYTM2YjQ2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE1VDExMzMyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY2NWNkZDY4OTU0Y2VjN2VmYWUzMDU5MTc5ODZjOTU1ZTA5NmRiMzE4MmZhM2MzY2I0MzljN2Y5Y2RhN2JkZTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.bnwLjUxqwDp3oUAsxU9qJPCUllZmdVimfH12leHi6q8)
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
![image](https://private-user-images.githubusercontent.com/23404675/320222806-20002934-b87d-4916-9591-dd8dd2c047f6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwNDM1MDgsIm5iZiI6MTcyMTA0MzIwOCwicGF0aCI6Ii8yMzQwNDY3NS8zMjAyMjI4MDYtMjAwMDI5MzQtYjg3ZC00OTE2LTk1OTEtZGQ4ZGQyYzA0N2Y2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE1VDExMzMyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY2NzA3Y2I3MTI4OWQyN2YxOGFlMzIyNzhhOTRhZWQxZGJhODZiMjJhY2VjYWU4OTZjNTY5NWZlMTM4Njc4YjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.pJBMGH_LQnHiDvs3ErFgscFct46ToMSbMis7TyEzKXI)
I need to render the bottom stacked card with correct color, with that, i need to have the correct index,
below is the goal of mine
Because of this issue, i cant get the correct card index, and because of this, the result of my stacked bottom card color become incorrect
![image](https://private-user-images.githubusercontent.com/23404675/320223117-c95fad0e-02a8-403b-83d7-01578b7127e4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwNDM1MDgsIm5iZiI6MTcyMTA0MzIwOCwicGF0aCI6Ii8yMzQwNDY3NS8zMjAyMjMxMTctYzk1ZmFkMGUtMDJhOC00MDNiLTgzZDctMDE1NzhiNzEyN2U0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE1VDExMzMyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNkYjM4MTY5M2RmNjhhYmYyNTViMGFiYTE0YTJkNzg1N2YyNTk3MmVhNzllYjFhNjU1MzcwNDY1NzUyMThlN2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.73Qtdapmd-QFH7pIleorfWAeTj9kSsVKWYEfcsCUKCA)
The text was updated successfully, but these errors were encountered: