From 686596a8c104233aada786792b56cfc29701d44c Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Sun, 27 Oct 2024 21:28:43 +0000 Subject: [PATCH] custom select on styles --- apps/home/static/home/js/tabs/styles.js | 6 ++++++ apps/home/templates/home/modals/editStyle.html | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/apps/home/static/home/js/tabs/styles.js b/apps/home/static/home/js/tabs/styles.js index f1b3a9a..e1e1be4 100644 --- a/apps/home/static/home/js/tabs/styles.js +++ b/apps/home/static/home/js/tabs/styles.js @@ -290,4 +290,10 @@ async function loadMutatorOptions() { }); $inputs.prop("disabled", false); + + // Re-init the component + if ($inputs.next('.corbz-select-container').length) { + $inputs.next('.corbz-select-container').remove(); + $inputs.initCorbzSelect(); + } } diff --git a/apps/home/templates/home/modals/editStyle.html b/apps/home/templates/home/modals/editStyle.html index d5229c0..6193d62 100644 --- a/apps/home/templates/home/modals/editStyle.html +++ b/apps/home/templates/home/modals/editStyle.html @@ -74,8 +74,8 @@
- +
Modify the title in fun ways.
@@ -83,8 +83,8 @@
- +
Modify the description in fun ways.