# HG changeset patch # User drewp@bigasterisk.com # Date 2022-06-01 19:19:46 # Node ID 6a9f9af9d3b8fab80e4dc8bfdbff5b1df60d9bd3 # Parent 1ef921880e37df18328157f398dec1966278218d EditChoice sends new choice in event diff --git a/light9/web/EditChoice.ts b/light9/web/EditChoice.ts --- a/light9/web/EditChoice.ts +++ b/light9/web/EditChoice.ts @@ -3,7 +3,7 @@ import debug from "debug"; import { css, html, LitElement } from "lit"; import { customElement, property } from "lit/decorators.js"; import { NamedNode } from "n3"; - +export { ResourceDisplay } from "../web/ResourceDisplay"; const log = debug("editchoice"); const RDFS = "http://www.w3.org/2000/01/rdf-schema#"; @@ -103,7 +103,7 @@ export class EditChoice extends LitEleme _setUri(u: any) { this.uri = u; - this.dispatchEvent(new CustomEvent("edited")); + this.dispatchEvent(new CustomEvent("edited", {detail: {newValue: u}})); } unlink() {