-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
[ML] Hide job messages clear notifications tooltip on click #132982
[ML] Hide job messages clear notifications tooltip on click #132982
Conversation
Pinging @elastic/ml-ui (:ml) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ⚡
(cherry picked from commit a954553)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
Summary
Fixes the
onClick
behavior of the 'Clear notificaitons' and Refresh buttons in the Job Messages tab of the Anomaly Detection jobs list, to hide the tooltip when the button is clicked.The fix switches the
blurButtonOnClick
function to useevent.currentTarget
rather thanevent.target
ascurrentTarget
always refers to the element to which the event handler has been attached, as opposed totarget
which identifies the element on which the event occurred and which may be its descendant (as was the case for the Clear Notifications button where the event occured on the<span>
element containing the button text.Before:
After:
Checklist
Fixes #128734