Skip to content

Conversation

jeremyvii
Copy link
Contributor

This PR updates BaseComponent.getInstance(element) to resolve multiple data types to a component, by passing element to getElements() before attempting to retrieve the component.

Closes #34310.

@jeremyvii jeremyvii requested a review from a team as a code owner June 22, 2021 17:27
Copy link
Contributor

@rohit2sharma95 rohit2sharma95 left a comment

Choose a reason for hiding this comment

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

You may need to update the documentation for this method (and for getOrCreateInstance as well) 🙂

@rohit2sharma95 rohit2sharma95 changed the title Resolve multiple data types to a component Accept argument of different types in the getInstance method Jun 23, 2021
@jeremyvii jeremyvii requested a review from rohit2sharma95 June 24, 2021 17:03
@XhmikosR XhmikosR merged commit d314466 into twbs:main Jun 29, 2021
@jeremyvii jeremyvii deleted the resolve-multiple-data-types branch June 29, 2021 15:13
marvin-hinkley-vortx pushed a commit to Vortx-Inc/bootstrap that referenced this pull request Aug 18, 2021
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.

Components getInstance should be able to resolve string selectors and jQuery objects as the componnent constructor
4 participants