diff --git a/core/horizontal_menu_view.js b/core/horizontal_menu_view.js index 02f9c06e..d9921c96 100644 --- a/core/horizontal_menu_view.js +++ b/core/horizontal_menu_view.js @@ -163,5 +163,6 @@ HorizontalMenuView.prototype.onKeyPress = function(ch, key) { }; HorizontalMenuView.prototype.getData = function() { - return this.focusedItemIndex; + const item = this.getItem(this.focusedItemIndex); + return _.isString(item.data) ? item.data : this.focusedItemIndex; }; \ No newline at end of file