Skip to content

Commit

Permalink
Fix HTMLTextAreaElement reference
Browse files Browse the repository at this point in the history
  • Loading branch information
benStre committed Oct 8, 2024
1 parent f4cac4d commit f8557df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datex-bindings/dom-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export class DOMUtils {
const element = parent instanceof this.context.HTMLTemplateElement ? parent.content : parent;

// Handle HTMLTextAreaElement element body
if (element instanceof HTMLTextAreaElement) {
if (element?.tagName?.toLowerCase?.() === "textarea") {
const reactiveProps = children.find(e => e instanceof Datex.ReactiveValue);
if (reactiveProps) {
this.setLiveAttribute(element, "value", reactiveProps);
Expand Down

0 comments on commit f8557df

Please sign in to comment.