Skip to content

Commit 0e9cba8

Browse files
authored
Merge pull request #535 from facultyai/tooltip-fade
Add visibility:hidden to faded content
2 parents e8f7ff3 + 4b6d77a commit 0e9cba8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/Fade.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ const Fade = props => {
1414
base_class_active,
1515
is_in,
1616
loading_state,
17+
style,
1718
...otherProps
1819
} = props;
1920
return (
2021
<RSFade
2122
baseClass={base_class}
2223
baseClassActive={base_class_active}
2324
in={is_in}
25+
style={is_in ? style : {visibility: 'hidden', ...style}}
2426
{...omit(['setProps'], otherProps)}
2527
data-dash-is-loading={
2628
(loading_state && loading_state.is_loading) || undefined

0 commit comments

Comments
 (0)