From 9cc0491e3a6ae2a63bc735d8e438066ac6ae40ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20F=C3=A4th?= Date: Thu, 11 Jul 2019 15:20:53 +0200 Subject: [PATCH] Keep nav hidden on TV Prevents focus of menu entries --- src/scripts/librarymenu.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/scripts/librarymenu.js b/src/scripts/librarymenu.js index 46adeeada3..59275c218c 100644 --- a/src/scripts/librarymenu.js +++ b/src/scripts/librarymenu.js @@ -771,7 +771,9 @@ define(["dom", "layoutManager", "inputManager", "connectionManager", "events", " return new Promise(function (resolve, reject) { require(["navdrawer"], function (navdrawer) { navDrawerInstance = new navdrawer(getNavDrawerOptions()); - navDrawerElement.classList.remove("hide"); + if (!layoutManager.tv) { + navDrawerElement.classList.remove("hide"); + } resolve(navDrawerInstance); }); });