Skip to content

Commit 5fdb7bc

Browse files
committed
random name attribute
1 parent c410374 commit 5fdb7bc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/rdf-input/RDFInput.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { property } from 'lit/decorators.js'
22
import { html } from 'lit/html.js'
33
import ns from '../../lib/ns'
4-
import { customElement, WebComponent } from '@/lib/components'
4+
import { customElement, generateId, WebComponent } from '@/lib/components'
55
import { Literal, NamedNode, st } from 'rdflib'
66
import { label } from '../../utils'
77
import { mostSpecificClassURI } from '../../lib/forms/rdfFormsHelper'
@@ -58,9 +58,9 @@ export default class RDFInput extends WebComponent {
5858
return html`
5959
<solid-ui-input
6060
label="${inputLabel}"
61-
name="input-${inputLabel}"
61+
name="name-${generateId()}"
6262
.value=${inputValue}
63-
placeholder="${placeholder}"
63+
.placeholder=${placeholder}
6464
type="${inputType}"
6565
?readonly=${readonly}
6666
@input=${this.updateData}

0 commit comments

Comments
 (0)