Skip to content

Commit

Permalink
Prefix textinput & datetime value with . (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
RebbePod authored Apr 29, 2024
1 parent 832a6c8 commit 7c1c976
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/v2/src/esp-entity-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ class ActionRenderer {
type="${type}"
name="${entity.unique_id}"
id="${entity.unique_id}"
value="${value}"
.value="${value}"
@change="${(e: Event) => {
const val = (<HTMLTextAreaElement>e.target)?.value;
this.actioner?.restAction(
Expand Down Expand Up @@ -326,7 +326,7 @@ class ActionRenderer {
minlength="${min || Math.min(0, value as number)}"
maxlength="${max || Math.max(255, value as number)}"
pattern="${pattern || ''}"
value="${value!}"
.value="${value!}"
@change="${(e: Event) => {
let val = e.target?.value;
this.actioner?.restAction(entity, `${action}?${opt}=${encodeURIComponent(val)}`);
Expand Down
4 changes: 2 additions & 2 deletions packages/v3/src/esp-entity-table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ class ActionRenderer {
type="${type}"
name="${entity.unique_id}"
id="${entity.unique_id}"
value="${value}"
.value="${value}"
@change="${(e: Event) => {
const val = (<HTMLTextAreaElement>e.target)?.value;
this.actioner?.restAction(
Expand Down Expand Up @@ -378,7 +378,7 @@ class ActionRenderer {
step="${step}"
min="${min}"
max="${max}"
value="${value}"
.value="${value}"
@state="${(e: CustomEvent) => {
const val = (<HTMLTextAreaElement>e.target)?.value;
this.actioner?.restAction(entity, `${action}?${opt}=${e.detail.state}`);
Expand Down

0 comments on commit 7c1c976

Please sign in to comment.