1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-07 14:16:47 +02:00

Accept argument of different types in the getInstance method (#34333)

This commit is contained in:
Jeremy Jackson
2021-06-29 09:45:45 -05:00
committed by GitHub
parent b00355de4b
commit d314466a4d
2 changed files with 15 additions and 1 deletions

View File

@@ -48,7 +48,7 @@ class BaseComponent {
/** Static */
static getInstance(element) {
return Data.get(element, this.DATA_KEY)
return Data.get(getElement(element), this.DATA_KEY)
}
static getOrCreateInstance(element, config = {}) {