Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement HTMLInputElement #171

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lowlighter
Copy link
Contributor

No description provided.

@b-fuze
Copy link
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

data[2],
CTOR_KEY,
);
}
Copy link
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
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