Dropdown fixes

This commit is contained in:
Juan 2018-03-09 15:09:54 +01:00
parent fbd6a5d58a
commit c9ba1d00e4
2 changed files with 2 additions and 3 deletions

View File

@ -19,10 +19,9 @@
vn-id="model" vn-id="model"
on-data-change="$ctrl.onModelDataChange()"> on-data-change="$ctrl.onModelDataChange()">
</vn-model> </vn-model>
<div class="list"> <div class="list" tabindex="-1">
<ul <ul
class="dropdown" class="dropdown"
tabindex="-1"
ng-click="$ctrl.onContainerClick($event)"> ng-click="$ctrl.onContainerClick($event)">
</ul> </ul>
<div <div

View File

@ -274,7 +274,7 @@ export default class DropDown extends Component {
} }
onDocFocusIn(event) { onDocFocusIn(event) {
if (event !== this.lastFocusEvent && event.originalTarget !== this.parent) if (event !== this.lastFocusEvent)
this.hide(); this.hide();
} }