Dropdown fixes
This commit is contained in:
parent
fbd6a5d58a
commit
c9ba1d00e4
|
@ -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
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue