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:
@@ -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 = {}) {
|
||||
|
Reference in New Issue
Block a user