Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Reload doesn't reapply slide widths #182

Open
flxsource opened this issue Jul 14, 2020 · 3 comments
Open

Reload doesn't reapply slide widths #182

flxsource opened this issue Jul 14, 2020 · 3 comments
Labels

Comments

@flxsource
Copy link

When using reload after changing the contents of the slot (ie, to apply a filter to the slides if the widthSlide property hasn't changed it isn't applied to the new elements. This is because the widthSlide is only applied in the watcher when it changes, and the value remains the same.

Codepen

@flxsource flxsource added the bug label Jul 14, 2020
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.95. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@flxsource
Copy link
Author

I've managed to work around the issue using the changes in #183 which sets the container width to 0, and then reverts it again. This seems pretty hacky though - is there a better approach?

@TitanFighter
Copy link

As a workaround I do it via v-if, so in this way I re-initiate vue-agile.

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

No branches or pull requests

2 participants