As fallback use hovered element to select on enter.
This commit is contained in:
parent
5d8b109a7e
commit
db85fb5a1a
1 changed files with 5 additions and 0 deletions
|
@ -53,6 +53,11 @@
|
|||
if ( e.keyCode === 13 ) {
|
||||
e.preventDefault()
|
||||
var id = _this.$widget.find('.dropdown-menu li.active a').data('id')
|
||||
|
||||
// as fallback use hovered element
|
||||
if (!id) {
|
||||
id = _this.$widget.find('.dropdown-menu li:hover a').data('id')
|
||||
}
|
||||
_this.take(id)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue