From 048f0cb1120fde6ba9816240819847e4aa3f1e64 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 10 Oct 2021 15:12:35 +0100 Subject: [PATCH] :adhesive_bandage: Fixes cannot type with modal open --- src/components/Settings/ThemeSelector.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Settings/ThemeSelector.vue b/src/components/Settings/ThemeSelector.vue index a3925cc5..8009241c 100644 --- a/src/components/Settings/ThemeSelector.vue +++ b/src/components/Settings/ThemeSelector.vue @@ -100,8 +100,10 @@ export default { }, /* Closes the theme color configurator popup */ closeThemeConfigurator() { - this.$store.commit(Keys.SET_MODAL_OPEN, false); - this.themeConfiguratorOpen = false; + if (this.themeConfiguratorOpen) { + this.$store.commit(Keys.SET_MODAL_OPEN, false); + this.themeConfiguratorOpen = false; + } }, /* Updates theme. Checks if the new theme is local or external, and calls appropirate updating function. Updates local storage */