Not sure what's the use of this codes:
if (this.opts.search) {
firstOption.addClass('selectron__option--is-hovered');
}
Because of this, the first option "Please select category" gets selected every time. hence I had removed these lines and now I am not getting the issue.
Not sure what's the use of this codes:
if (this.opts.search) {
firstOption.addClass('selectron__option--is-hovered');
}
Because of this, the first option "Please select category" gets selected every time. hence I had removed these lines and now I am not getting the issue.