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

Fix carousel buttons #34266

Merged
merged 2 commits into from
Jun 16, 2021
Merged

Fix carousel buttons #34266

merged 2 commits into from
Jun 16, 2021

Conversation

alpadev
Copy link
Contributor

@alpadev alpadev commented Jun 16, 2021

Fixes #34226

/cc @GeoSot

@alpadev alpadev requested a review from a team as a code owner June 16, 2021 03:07
@alpadev alpadev added this to Inbox in v5.0.2 via automation Jun 16, 2021
@alpadev alpadev moved this from Inbox to Review in v5.0.2 Jun 16, 2021
Copy link
Member

@mdo mdo left a comment

Choose a reason for hiding this comment

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

😻

v5.0.2 automation moved this from Review to Approved Jun 16, 2021
@XhmikosR XhmikosR merged commit d62ba93 into main Jun 16, 2021
v5.0.2 automation moved this from Approved to Done Jun 16, 2021
@XhmikosR XhmikosR deleted the fix-carousel-buttons branch June 16, 2021 04:48
...config
}
}

Copy link
Member

Choose a reason for hiding this comment

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

@alpa Glad you find it ❤️

Can you explain why did this happened?

As it passes from getOrCreateInstance

 static getOrCreateInstance(element, config = {}) {
    return this.getInstance(element) || new this(element, typeof config === 'object' ? config : null)
  } 

I am not sure I understand where it fails :/

and _getConfig does the same process

  _getConfig(config) {
    config = {
      ...Default,
      ...Manipulator.getDataAttributes(this._element),
      ...(typeof config === 'object' ? config : {})
    }
    typeCheckConfig(NAME, config, DefaultType)
    return config
  }

marvin-hinkley-vortx pushed a commit to Vortx-Inc/bootstrap that referenced this pull request Aug 18, 2021
* test(carousel): add test to check if next/prev button work as intended

* fix(carousel): merge passed config with instance config in carouselInterface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
v5.0.2
  
Done
Development

Successfully merging this pull request may close these issues.

Carousel controls broken in main
4 participants