Skip to content

Conversation

tmorehouse
Copy link
Member

Add observedom mixin to handle updates to slide content (and delayed rendering of carousel-slide)

No guarantee that carousel is bug-free

@tmorehouse tmorehouse requested a review from pi0 August 10, 2017 20:03
@tmorehouse tmorehouse changed the title fix(carousel): Handle changes in slide content [WIP] fix(carousel): Handle changes in slide content Aug 11, 2017
@tmorehouse tmorehouse changed the title [WIP] fix(carousel): Handle changes in slide content fix(carousel): Handle changes in slide content & bug fixes Aug 11, 2017
@pi0 pi0 changed the title fix(carousel): Handle changes in slide content & bug fixes fix(carousel): Handle changes in slide content Aug 11, 2017
@pi0
Copy link
Member

pi0 commented Aug 11, 2017

I have temporarily removed carousel from docs sidebar. Do you think we are stable enough now to bring it back?

@tmorehouse
Copy link
Member Author

Now includes fixes for slightly messed up transitions (blank space between sliding slides is now gone)

Allows user to programmatically pause and restart the carousel by setting interval prop on the fly

@tmorehouse
Copy link
Member Author

I think this version fixes many issues (although not positive if it has added any new "bugs")

@tmorehouse
Copy link
Member Author

Also added updated docs/example for carousel

@@ -139,27 +140,35 @@
},
value: {
type: Number,
defrault: 0
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the main culprit of carousel not showing initially, as value defaulted to null/undefined if a v-model wasn't bound.

@bootstrap-vue bootstrap-vue deleted a comment from codecov-io Aug 11, 2017
@codecov-io
Copy link

codecov-io commented Aug 11, 2017

Codecov Report

Merging #809 into dev will increase coverage by 0.39%.
The diff coverage is 43.18%.

Impacted file tree graph

@@           Coverage Diff            @@
##              dev   #809      +/-   ##
========================================
+ Coverage   39.61%    40%   +0.39%     
========================================
  Files          68     68              
  Lines        2209   2217       +8     
  Branches      632    633       +1     
========================================
+ Hits          875    887      +12     
+ Misses       1172   1171       -1     
+ Partials      162    159       -3
Impacted Files Coverage Δ
lib/components/carousel-slide.vue 66.66% <100%> (+4.16%) ⬆️
lib/components/carousel.vue 37.61% <41.86%> (+3.59%) ⬆️
lib/utils/observe-dom.js 60% <0%> (+60%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0842043...e941a89. Read the comment docs.

@tmorehouse
Copy link
Member Author

This should now be ready for testing before merge.

@tmorehouse
Copy link
Member Author

Incorporated changes by @pi0 in the v4-beta branch

@tmorehouse tmorehouse merged commit 6949e5f into dev Aug 11, 2017
@tmorehouse tmorehouse deleted the tmorehouse-carousel branch August 11, 2017 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants