Skip to content

Commit 8814035

Browse files
authored
Merge pull request usablica#619 from Giegling/master
Fixed issue when property wasn't able to be set, when showBullets was…
2 parents 20328c3 + d75a274 commit 8814035

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

intro.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,6 @@
766766
* @param {Object} targetElement
767767
*/
768768
function _showElement(targetElement) {
769-
770769
if (typeof (this._introChangeCallback) !== 'undefined') {
771770
this._introChangeCallback.call(this, targetElement.element);
772771
}
@@ -843,9 +842,10 @@
843842
_placeTooltip.call(self, targetElement.element, oldtooltipContainer, oldArrowLayer, oldHelperNumberLayer);
844843

845844
//change active bullet
846-
oldReferenceLayer.querySelector('.introjs-bullets li > a.active').className = '';
847-
oldReferenceLayer.querySelector('.introjs-bullets li > a[data-stepnumber="' + targetElement.step + '"]').className = 'active';
848-
845+
if (self._options.showBullets) {
846+
oldReferenceLayer.querySelector('.introjs-bullets li > a.active').className = '';
847+
oldReferenceLayer.querySelector('.introjs-bullets li > a[data-stepnumber="' + targetElement.step + '"]').className = 'active';
848+
}
849849
oldReferenceLayer.querySelector('.introjs-progress .introjs-progressbar').setAttribute('style', 'width:' + _getProgress.call(self) + '%;');
850850

851851
//show the tooltip

0 commit comments

Comments
 (0)