diff --git a/app/assets/javascripts/app/lib/base/jquery.textmodule.js b/app/assets/javascripts/app/lib/base/jquery.textmodule.js index 44b33c774..de628f457 100644 --- a/app/assets/javascripts/app/lib/base/jquery.textmodule.js +++ b/app/assets/javascripts/app/lib/base/jquery.textmodule.js @@ -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 }