From 0c9770d4b132b54bd4577fb809d730910b91f214 Mon Sep 17 00:00:00 2001 From: timea-solid <4144203+timea-solid@users.noreply.github.com> Date: Fri, 24 Jul 2026 09:20:46 +0200 Subject: [PATCH 1/4] added a state to hold the current text being typed --- src/components/rdf-input/RDFInput.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/rdf-input/RDFInput.ts b/src/components/rdf-input/RDFInput.ts index b8e96f83c..39b4552a8 100644 --- a/src/components/rdf-input/RDFInput.ts +++ b/src/components/rdf-input/RDFInput.ts @@ -1,4 +1,4 @@ -import { property } from 'lit/decorators.js' +import { property, state } from 'lit/decorators.js' import { html } from 'lit/html.js' import ns from '../../lib/ns' import { customElement, generateId, WebComponent } from '@/lib/components' @@ -32,6 +32,9 @@ export default class RDFInput extends WebComponent { @property({ type: Number }) accessor storeVersion = 0 + @state() + private accessor localInputValue: string | null = null + private _updateInFlight = false private _pendingUpdateValue: string | null = null @@ -59,7 +62,9 @@ export default class RDFInput extends WebComponent { // for populating the HTML input element const selectedTerm = this.getSelectedTerm(this.dataSubject, uiPropertyTerm, this.formSubject, params) const placeholder = readonly ? '' : this.defaultInputValue(params) - const inputValue = this.termToInputValue(selectedTerm) + const inputValue = this.localInputValue !== null || this._updateInFlight + ? this.localInputValue ?? '' + : this.termToInputValue(selectedTerm) return html` Date: Fri, 24 Jul 2026 07:29:59 +0000 Subject: [PATCH 2/4] chore: update solidos dependencies (dev: solid-logic@4.0.8-1 pane-registry@3.1.2-2) (latest: rdflib@2.4.0) --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index e13bde3b3..a0e551483 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7264,9 +7264,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.395", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.395.tgz", - "integrity": "sha512-7zt9Aw+SrmxLWLN0zhaTWZQiCdryLVrYTq5R7iZakLvi2UQPYMMsROYV/2qVCzMeCiSXHwKOU+sZ4zOVVlrtKA==", + "version": "1.5.396", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.396.tgz", + "integrity": "sha512-yHiw2Y3C3H9U6TMbOfoWK/BPreiOPXRfTWPBwQBoZG6/8TB6eOPnsy5oaRYuatR7Fw2SJ4kKforgufeo7fq0EQ==", "dev": true, "license": "ISC" }, From c4dd28404662595c93f06fc66f6ab6c48c0b07d0 Mon Sep 17 00:00:00 2001 From: Timea <4144203+timea-solid@users.noreply.github.com> Date: Fri, 24 Jul 2026 09:53:13 +0200 Subject: [PATCH 3/4] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- src/components/rdf-input/RDFInput.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/rdf-input/RDFInput.ts b/src/components/rdf-input/RDFInput.ts index 39b4552a8..62f1f010b 100644 --- a/src/components/rdf-input/RDFInput.ts +++ b/src/components/rdf-input/RDFInput.ts @@ -62,7 +62,7 @@ export default class RDFInput extends WebComponent { // for populating the HTML input element const selectedTerm = this.getSelectedTerm(this.dataSubject, uiPropertyTerm, this.formSubject, params) const placeholder = readonly ? '' : this.defaultInputValue(params) - const inputValue = this.localInputValue !== null || this._updateInFlight + const inputValue = this._updateInFlight || this._pendingUpdateValue !== null ? this.localInputValue ?? '' : this.termToInputValue(selectedTerm) From c1551a4bbc6abc0e3e659f611c857a0c1166c22a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 24 Jul 2026 07:58:05 +0000 Subject: [PATCH 4/4] Fix RDFInput local value clearing after save --- src/components/rdf-input/RDFInput.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/rdf-input/RDFInput.ts b/src/components/rdf-input/RDFInput.ts index 62f1f010b..3a551b1c5 100644 --- a/src/components/rdf-input/RDFInput.ts +++ b/src/components/rdf-input/RDFInput.ts @@ -200,7 +200,6 @@ export default class RDFInput extends WebComponent { try { await this.storeContext.store.updater.updateMany(toDeleteSt, toInsertSt as any) this.storeVersion += 1 - this.localInputValue = '' } catch (err) { console.error('RDFInput update failed', err) } finally {