From 16a76ca4dcbfbad40efa5597651ae951ff66e986 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Tue, 16 Nov 2021 18:22:43 +0100 Subject: Fix language filter on load, take 2 Fixes #74 --- assets/js/controllers/lang.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/js/controllers/lang.js b/assets/js/controllers/lang.js index 980eb3d..083acc0 100644 --- a/assets/js/controllers/lang.js +++ b/assets/js/controllers/lang.js @@ -22,9 +22,12 @@ export function newLangController() { }, initLangs: function(tabs) { debug('initLangs', tabs); - this.changeLanguage(0); tabs[0].active = true; this.tabs = tabs; + + return this.$nextTick(() => { + this.changeLanguage(0); + }); } }; } -- cgit v1.2.3