Skip to content
Merged
Prev Previous commit
Next Next commit
Update dropdown.js
  • Loading branch information
719media authored Jan 6, 2018
commit 5c1e0eac426c134a974621b93895b59988ea7f24
4 changes: 2 additions & 2 deletions js/src/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ const Dropdown = (($) => {
if (this._config.reference === 'parent') {
referenceElement = parent
} else if (Util.isElement(this._config.reference)) {
referenceElement = this._config.reference;
referenceElement = this._config.reference

//check if it's jQuery element
if (typeof this._config.reference.jquery !== 'undefined') {
referenceElement = this._config.reference[0];
referenceElement = this._config.reference[0]
}
}

Expand Down