Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI component inside the slide does not change when using the callback function #350

Closed
Admirated opened this issue Nov 16, 2023 · 1 comment

Comments

@Admirated
Copy link

Describe the bug
I'm using the "vue3-carousel" slider: "^0.2.9",
This is what my slider structure looks like, inside the Slide is a UICard component
image
The UICard component has logic for updating data. I subscribe to an event in a class and pass a callback with this (UICard) context to it;
image
When callBack is called, the following happens:
The required model in the UICard component is changed, (Accordingly, Watch is called on this model, which works correctly and shows that the data is actually updated).
But in the card inside the slider visually nothing changes, the data remains old, and in vue devTools shows that the model is NULL.
In the mobile version I use the same UICard component, which is not inside the slider, and everything works fine there
What are your thoughts on how to solve this problem?

To Reproduce
Try changing the component data using the callback function, inside the slider

Expected behavior
I expect that the card in which the model has been changed will draw the new data, as in the mobile version without using the slider.

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser Google Chrome
  • Version 119.0.6045.160
@Tofandel
Copy link
Contributor

Might be related to #433, issue being that slides are just taken from vNodes and cannot update properly, I have a PR on the way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants