mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Infra UI] Stop click propagation on tooltip (#161565)
fixes [#161553](https://github.com/elastic/kibana/issues/161553)
## Summary
Fixes click event on the tooltip content
13c8fde1
-7dfe-4fb0-92f2-b3e45bd36972
### How to test
- Start a local Kibana instance
- Navigate to `Infrastructure` > `Hosts`
- Click on the `?` icon in the table column headers and then click on
the content. It must not sort the table
This commit is contained in:
parent
a691f9b5e9
commit
6c2170d385
1 changed files with 5 additions and 1 deletions
|
@ -19,8 +19,12 @@ interface Props extends Pick<HTMLAttributes<HTMLDivElement>, 'style'> {
|
|||
|
||||
export const TooltipContent = React.memo(
|
||||
({ description, formula, showDocumentationLink = false, style }: Props) => {
|
||||
const onClick = (e: React.MouseEvent<HTMLDivElement, MouseEvent>) => {
|
||||
e.stopPropagation();
|
||||
};
|
||||
|
||||
return (
|
||||
<EuiText size="xs" style={style}>
|
||||
<EuiText size="xs" style={style} onClick={onClick}>
|
||||
<p>{description}</p>
|
||||
{formula && (
|
||||
<p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue