Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
93586491
Commit
93586491
authored
Nov 15, 2018
by
Johannes Schill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
panel-header: Unmount popper when not needed.
parent
362ee894
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
45 deletions
+1
-45
public/app/core/components/Tooltip/Popper.tsx
+1
-1
public/app/core/components/Tooltip/__snapshots__/Popover.test.tsx.snap
+0
-22
public/app/core/components/Tooltip/__snapshots__/Tooltip.test.tsx.snap
+0
-22
No files found.
public/app/core/components/Tooltip/Popper.tsx
View file @
93586491
...
@@ -36,7 +36,7 @@ class Popper extends PureComponent<Props> {
...
@@ -36,7 +36,7 @@ class Popper extends PureComponent<Props> {
</
div
>
</
div
>
)
}
)
}
</
Reference
>
</
Reference
>
<
Transition
in=
{
show
}
timeout=
{
100
}
>
<
Transition
in=
{
show
}
timeout=
{
100
}
mountOnEnter=
{
true
}
unmountOnExit=
{
true
}
>
{
transitionState
=>
(
{
transitionState
=>
(
<
ReactPopper
placement=
{
placement
}
>
<
ReactPopper
placement=
{
placement
}
>
{
({
ref
,
style
,
placement
,
arrowProps
})
=>
{
{
({
ref
,
style
,
placement
,
arrowProps
})
=>
{
...
...
public/app/core/components/Tooltip/__snapshots__/Popover.test.tsx.snap
View file @
93586491
...
@@ -12,27 +12,5 @@ exports[`Popover renders correctly 1`] = `
...
@@ -12,27 +12,5 @@ exports[`Popover renders correctly 1`] = `
Button with Popover
Button with Popover
</button>
</button>
</div>
</div>
<div
className="popper"
style={
Object {
"left": 0,
"opacity": 0,
"pointerEvents": "none",
"position": "absolute",
"top": 0,
"transition": "opacity 200ms linear",
}
}
>
<div
className="popper__background"
>
Popover text
<div
className="popper__arrow"
/>
</div>
</div>
</div>
</div>
`;
`;
public/app/core/components/Tooltip/__snapshots__/Tooltip.test.tsx.snap
View file @
93586491
...
@@ -15,27 +15,5 @@ exports[`Tooltip renders correctly 1`] = `
...
@@ -15,27 +15,5 @@ exports[`Tooltip renders correctly 1`] = `
Link with tooltip
Link with tooltip
</a>
</a>
</div>
</div>
<div
className="popper"
style={
Object {
"left": 0,
"opacity": 0,
"pointerEvents": "none",
"position": "absolute",
"top": 0,
"transition": "opacity 200ms linear",
}
}
>
<div
className="popper__background"
>
Tooltip text
<div
className="popper__arrow"
/>
</div>
</div>
</div>
</div>
`;
`;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment