We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
change
Background: https://vaadin.slack.com/archives/D7V9RRY11/p1636969267000200
As a Lit + TypeScript user, when using Vaadin field components e.g.
<vaadin-combo-box @change=${this.fontFamilyChanged}>
... I would like get the value of the combo box without a type cast:
private fontFamilyChanged(event: Event) { const combo = event.target as ComboBox; }
Investigate if we could add change to ComboBoxEventMap to get this:
ComboBoxEventMap
private fontFamilyChanged(event: ComboBoxChangeEvent) { const combo = event.target; // no type case needed }
Two last examples here might be useful: https://freshman.tech/snippets/typescript/fix-value-not-exist-eventtarget/
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Motivation
Background: https://vaadin.slack.com/archives/D7V9RRY11/p1636969267000200
As a Lit + TypeScript user, when using Vaadin field components e.g.
... I would like get the value of the combo box without a type cast:
Proposed solution
Investigate if we could add
change
toComboBoxEventMap
to get this:Note
Two last examples here might be useful: https://freshman.tech/snippets/typescript/fix-value-not-exist-eventtarget/
The text was updated successfully, but these errors were encountered: