Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

fulldecent
Copy link
Contributor

@fulldecent fulldecent commented Mar 14, 2025

Description

Fixes documentation for Tooltip in docs.

getInstance had wrong documentation.

Motivation & Context

I confirmed the actual implementation matches my new documentation:

// Static
static getInstance(element) {
return Data.get(getElement(element), this.DATA_KEY)
}
static getOrCreateInstance(element, config = {}) {
return this.getInstance(element) || new this(element, typeof config === 'object' ? config : null)
}

Type of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would change existing functionality)

Checklist

  • I have read the contributing guidelines
  • My code follows the code style of the project (using npm run lint)
  • My change introduces changes to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

Live previews

Related issues

Copy link
Member

@julien-deramond julien-deramond left a comment

Choose a reason for hiding this comment

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

Good catch @fulldecent, thanks for the patch!
I checked the documentation for getInstance and getOrCreateInstance for all other components. Everything's now OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants