From 25fd9f6a795f33e6cf849e980f465ebaff4aa032 Mon Sep 17 00:00:00 2001 From: IrosTheBeggar Date: Wed, 12 May 2021 23:39:21 -0400 Subject: [PATCH] fix broken dropdown --- webapp/admin/index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/webapp/admin/index.js b/webapp/admin/index.js index 8ef8130..7ce12dc 100644 --- a/webapp/admin/index.js +++ b/webapp/admin/index.js @@ -395,7 +395,8 @@ const usersView = Vue.component('users-view', { newUsername: '', newPassword: '', makeAdmin: Object.keys(ADMINDATA.users).length === 0 ? true : false, - submitPending: false + submitPending: false, + selectInstance: null }; }, template: ` @@ -482,6 +483,12 @@ const usersView = Vue.component('users-view', { `, + mounted: function () { + this.selectInstance = M.FormSelect.init(document.querySelectorAll(".material-select")); + }, + beforeDestroy: function() { + this.selectInstance[0].destroy(); + }, methods: { openLastFmModal: function() { modVM.currentViewModal = 'lastfm-modal';