This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
Pressing enter for selection of a dropdown value directly submits form #862
Closed
Description
I am working with ui-select, and whenever I press enter to select some searched results, the result is selected and the form directly goes on to submit. I cant figure it out, what is the problem.
Here is the HTML I'm using
<ui-select ng-model="$parent.selectedPatient"
theme="select2"
reset-search-input="true"
title="Select Patient">
<ui-select-match allow-clear="true" placeholder="Select Patient">{{$select.selected['Patient.name']['HumanName.text']}}</ui-select- match>
<ui-select-choices repeat="patient['@id'] as patient in patients track by $index"
refresh="refreshPatients($select.search)"
refresh-delay="0">
<div ng-bind-html="patient['Patient.name']['HumanName.text'] | highlight: $select.search"></div>
</ui-select-choices>
</ui-select>
Metadata
Metadata
Assignees
Labels
No labels