As fallback use first element in selection.
This commit is contained in:
parent
db85fb5a1a
commit
f52cf41a35
1 changed files with 5 additions and 0 deletions
|
@ -58,6 +58,11 @@
|
|||
if (!id) {
|
||||
id = _this.$widget.find('.dropdown-menu li:hover a').data('id')
|
||||
}
|
||||
|
||||
// as fallback first element
|
||||
if (!id) {
|
||||
id = _this.$widget.find('.dropdown-menu li:first-child a').data('id')
|
||||
}
|
||||
_this.take(id)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue