Skip to content

Carousel didn't work #17

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

Closed
RafaelPlantard opened this issue Nov 1, 2016 · 5 comments
Closed

Carousel didn't work #17

RafaelPlantard opened this issue Nov 1, 2016 · 5 comments

Comments

@RafaelPlantard
Copy link

When I put appears at console, that this tag doesn't exists.

@pi0
Copy link
Member

pi0 commented Nov 1, 2016

thanks, we will investigate that

@pi0 pi0 added the Type: Bug label Nov 1, 2016
@RobinRadic
Copy link

hey, got it working with a few minor fixes:

        this._carouselAnimation = setTimeout(function () {
          this._items[oldVal].classList.remove(this.direction.outgoing, 'active');
          this._items[val].classList.remove(this.direction.overlay);
          this.animating = false;
          // trigger an event
          $root.$emit('slid::carousel', val)
        }, TRANSITION_DURATION);

to

                this._carouselAnimation = setTimeout( ()  => {
                    this._items[oldVal].classList.remove(this.direction.outgoing, 'active');
                    this._items[val].classList.remove(this.direction.overlay);
                    this.animating = false;
                    // trigger an event
                    this.$root.$emit('slid::carousel', val)
                }, TRANSITION_DURATION);
      // start auto rotate slides
      start() {
        if (this.interval === 0 || typeof this.interval === 'undefined') return;
        this._intervalId = setInterval(function () {
          this.next()
        }, this.interval);
      }
            // start auto rotate slides
            start() {
                if (this.interval === 0 || typeof this.interval === 'undefined') return;
                this._intervalId = setInterval( () => {
                    this.next()
                }, this.interval);
            }

@RafaelPlantard
Copy link
Author

I will test it later. Thanks @RobinRadic

@thanhpk
Copy link

thanhpk commented Nov 23, 2016

In the docs, it's actually instead of
I tried the carousel but got this error:
bootstrapVue.common.js?f352:1 Uncaught TypeError: Cannot read property 'classList' of undefined

mathlef0u added a commit to mathlef0u/bootstrap-vue that referenced this issue Dec 10, 2016
pi0 added a commit that referenced this issue Dec 11, 2016
@mathlef0u
Copy link
Contributor

@thanhpk @RafaelPlantard this issue has been solved, i close it ;).

tmorehouse added a commit that referenced this issue May 8, 2017
Add b-button-group-dropdown to component list (#350)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants