Skip to content

Preserve contextMenuItem onClick event handler argument#265

Merged
weltenwort merged 1 commit intoelastic:masterfrom
weltenwort:fix/context-menu-event-arg
Jan 8, 2018
Merged

Preserve contextMenuItem onClick event handler argument#265
weltenwort merged 1 commit intoelastic:masterfrom
weltenwort:fix/context-menu-event-arg

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