Skip to content

feat: implement HTMLInputElement#171

Open
lowlighter wants to merge 1 commit intob-fuze:masterfrom
lowlighter:feat-input-reactivity
Open

feat: implement HTMLInputElement#171
lowlighter wants to merge 1 commit intob-fuze:masterfrom
lowlighter:feat-input-reactivity

Conversation

@lowlighter
Copy link
Copy Markdown
Contributor

No description provided.

@b-fuze
Copy link
Copy Markdown
Owner

b-fuze commented Jul 2, 2024

Just as a preface: HTMLInputElement is a very complex element... Currently it seems that you've implemented the text field and checkbox states, and as you know there are many more states

Comment thread src/deserialize.ts
data[2],
CTOR_KEY,
);
}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change this and the above if to utilize switch/case

}
set value(value: any) {
this.setAttribute("value", value);
this.dispatchEvent(new Event("input"));
Copy link
Copy Markdown
Owner

@b-fuze b-fuze Jul 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Programmatically setting the input values does not actually trigger DOM change events. You can check the very last two notes in the input element eventing behaviour section of the standard specification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants