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

fix(withWebComponent): Add handler of events those are not specified in metadata of ui5-webcomponents #315

Merged
merged 13 commits into from
Feb 13, 2020

Conversation

gnseo
Copy link
Contributor

@gnseo gnseo commented Feb 12, 2020

Hi, @MarcusNotheis .

For compatibility, I've updated withWebComponent to support events those are unsupported by ui5-webcomponents since onFocus event might be supported by ui5-webcomponents in sometime, if so, a runtime error would be occurred by the change.

Please check my code if it is acceptable.

@MarcusNotheis MarcusNotheis self-requested a review February 12, 2020 18:29
Copy link
Contributor

@MarcusNotheis MarcusNotheis left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution, looks good to me!
I would appreciate if you could accept these two minor adjustments in the getEventsFromMetadata function.

packages/main/src/internal/withWebComponent.tsx Outdated Show resolved Hide resolved
packages/main/src/internal/withWebComponent.tsx Outdated Show resolved Hide resolved
MarcusNotheis and others added 4 commits February 12, 2020 10:32
Co-Authored-By: Marcus Notheis <MarcusNotheis@users.noreply.github.com>
fix(withWebComponent): The argument has default value, so the check logic of argument is no longer needed.

Co-Authored-By: Marcus Notheis <MarcusNotheis@users.noreply.github.com>
@gnseo
Copy link
Contributor Author

gnseo commented Feb 13, 2020

Hi, @MarcusNotheis .

I've forgot to use the default value of arguments.
Thank you very much for your suggestion.

@MarcusNotheis
Copy link
Contributor

Hi @gnseo
you're welcome. Unfortunately my proposal contained a syntax error. Just fixed it and will merge as soon as the CI job turn green.
Thanks again for your contribution!

@MarcusNotheis MarcusNotheis merged commit 978b126 into SAP:master Feb 13, 2020
@github-actions
Copy link

Coverage Status

Coverage increased (+0.02%) to 70.551% when pulling f6881e4 on gnseo:master into 4aa10f7 on SAP:master.

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