After selecting an option, I am facing an issue where I cannot capture the ng-click
event when a user chooses a value from the drop-down menu. This is because the select option has been altered by bootstrap-select, as the default select option does not support CSS
styling so I had to resort to using bootstrap-select.
Here is the code:
<select class="form-control selectpicker col-md-6 col-md-offset-3 input-question input-text v2-mod"
id="{{question.name}}"
name="birthyear"
required
ng-model="answers.userdata[question.name]"
ng-class="{'input-error': formValidation && questionForm.birthyear.$error.required}" >
<option value="{{option.value}}"
ng-click="next('stage5')"
ng-repeat="(key, option) in question.options">
{{option.label}}
</option>
</select>
The code is affected after being modified with Bootstrap-select
: