If you have hideOnlyOnePage = true it triggers a click even if you have initiateStartPageClick = false set to false.
// hide if only one page exists
if (this.options.hideOnlyOnePage && this.options.totalPages == 1) {
this.$element.trigger('page', 1);
return this;
}
my suggestion is to change it to this
// hide if only one page exists
if (this.options.hideOnlyOnePage && this.options.totalPages == 1) {
if (this.options.initiateStartPageClick) {
this.$element.trigger('page', 1);
}
return this;
}
If you have hideOnlyOnePage = true it triggers a click even if you have initiateStartPageClick = false set to false.
my suggestion is to change it to this