From 137ee8f6515c66c0245926bddfb680c525855989 Mon Sep 17 00:00:00 2001 From: Paul Legan Date: Thu, 4 May 2023 19:42:10 -0400 Subject: [PATCH] Fixes for inconsistent dropdown experiences in Player and Experiences components --- .../clientlibs/clientlib-dialogs/js/dynamic_dropdown.js | 2 +- .../content/brightcoveexperiences/_cq_dialog/.content.xml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/clientlibs/clientlib-dialogs/js/dynamic_dropdown.js b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/clientlibs/clientlib-dialogs/js/dynamic_dropdown.js index 2da6c1f..c58700f 100755 --- a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/clientlibs/clientlib-dialogs/js/dynamic_dropdown.js +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/clientlibs/clientlib-dialogs/js/dynamic_dropdown.js @@ -85,7 +85,7 @@ }); accountSelector.addEventListener('coral-select:showitems', function(event) { - accountSelector.items.clear(); + //accountSelector.items.clear(); if (accountSelector.items.length == 0) { $.getJSON("/bin/brightcove/accounts.json").done(function(data) { var accounts = data.accounts; diff --git a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveexperiences/_cq_dialog/.content.xml b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveexperiences/_cq_dialog/.content.xml index aba8527..653dae7 100755 --- a/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveexperiences/_cq_dialog/.content.xml +++ b/current/ui.apps/src/main/content/jcr_root/apps/brightcove/components/content/brightcoveexperiences/_cq_dialog/.content.xml @@ -1,5 +1,5 @@ - @@ -25,6 +25,7 @@ jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/form/select" fieldDescription="" + granite:class="brightcove-dialog-experiences-account-dropdown" fieldLabel="Account:" name="./account">