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

Preserve contextMenuItem onClick event handler argument #265

Merged
merged 1 commit into from
Jan 8, 2018

Conversation

weltenwort
Copy link
Member

@weltenwort weltenwort commented Jan 8, 2018

This change preserves the onClick handler's signature of <T>(event: React.MouseEvent<T>) => void even if a panel is given. Additionally, the event will be removed from the React event pooling system due to the async nature of the requestAnimationFrame callback.

This change preserves the `onClick` handler's signature of `<T>(event:
React.MouseEvent<T>) => void` even if a `panel` is given. Additionally,
the event will be removed from the React event pooling system due to the
async nature of the `requestAnimationFrame` callback.
Copy link
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

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

Nice change! LGTM.

Copy link
Contributor

@chrisronline chrisronline left a comment

Choose a reason for hiding this comment

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

Nice find! LGTM!

@weltenwort weltenwort merged commit 1b6a952 into elastic:master Jan 8, 2018
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.

3 participants