Skip to content

Commit

Permalink
#1150 bug is resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Amelie1253 committed Feb 27, 2025
1 parent 6ba59ce commit 34bb900
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web-client/public/js/setup-load-and-import-handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,15 @@ export const setupLoadAndImportHandlers = (grnState) => {
const selected = event.target.dataset.expression;
if (`.${selected}` === demoClass) {
loadDemo(demoPath, demoClass, demoName);
grnState.demoDropdownValue = selected;
}
});
$("#demoSourceDropdown").on("change", () => {
const selected = `.${$("#demoSourceDropdown").val()}`;
if (selected === demoClass) {
loadDemo(demoPath, demoClass, demoName);
grnState.demoDropdownValue = selected;
}
grnState.demoDropdownValue = selected;
});
};

Expand Down

0 comments on commit 34bb900

Please sign in to comment.