Skip to content

Commit

Permalink
fix(pat contentbrowser): dispatch "change" event.
Browse files Browse the repository at this point in the history
  • Loading branch information
petschki committed Sep 25, 2024
1 parent 07897b7 commit 596bc39
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pat/contentbrowser/src/SelectedItems.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import { get_items_from_uids, resolveIcon } from "./utils.js";
import Sortable from "sortablejs";
import _t from "../../../core/i18n-wrapper";
import events from "@patternslib/patternslib/src/core/events";
let ref;
let initializing = true;
Expand Down Expand Up @@ -82,6 +83,7 @@
function setNodeValue(selectedUids) {
const node_val = selectedUids.join($config.separator);
selectedItemsNode.value = node_val;
selectedItemsNode.dispatchEvent(events.change_event());
}
$: {
Expand Down

0 comments on commit 596bc39

Please sign in to comment.