fixed dropdown

This commit is contained in:
David Baldwynn 2016-04-21 21:06:04 -04:00
parent d5437f92d0
commit 5eb25311d9
2 changed files with 4 additions and 6 deletions

View file

@ -13,13 +13,13 @@
ng-model-options="{ debounce: 250 }"
ng-required="field.required"
ng-disabled="field.disabled"
ng-click="$root.nextField()"
ng-focus="setActiveField(field._id, index, true)">
<ui-select-match placeholder="Type or select an option">
{{$select.selected.option_value}}
</ui-select-match>
<ui-select-choices repeat="option in field.fieldOptions | filter: $select.search"
ng-class="{'active': option.option_value === field.fieldValue }">
ng-click="$root.nextField()"
ng-class="{'active': option.option_value === field.fieldValue }">
<span ng-bind-html="option.option_value | highlight: $select.search"></span>
</ui-select-choices>
</ui-select>

View file

@ -6,10 +6,8 @@
style="margin: 0.5em; padding-left:30px"
ng-click="$root.nextField()"
ng-class="{activeBtn: field.fieldValue == field.fieldOptions[$index].option_id}">
<input
ng-style="{'color': design.colors.answerColor, 'border-color': design.colors.answerColor}"
type="radio"
class="focusOn"
<input ng-style="{'color': design.colors.answerColor, 'border-color': design.colors.answerColor}"
type="radio" class="focusOn"
value="{{option.option_value}}"
ng-model="field.fieldValue"
ng-model-options="{ debounce: 250 }"