Skip to content

Commit 069f7e1

Browse files
authored
Merge pull request #103 from ldabiralai/update-transitionName-proptypes
Update transitionName proptypes so it can be a string or object
2 parents 60d36af + 8af8645 commit 069f7e1

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ Online examples: [http://react-component.github.io/tooltip/examples/](http://rea
111111
</tr>
112112
<tr>
113113
<td>transitionName</td>
114-
<td>String</td>
114+
<td>String|Object</td>
115115
<td></td>
116-
<td>same as https://github.com/react-component/css-transition-group</td>
116+
<td>same as https://github.com/react-component/animate</td>
117117
</tr>
118118
<tr>
119119
<td>onVisibleChange</td>

src/Tooltip.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ class Tooltip extends Component {
1010
defaultVisible: PropTypes.bool,
1111
visible: PropTypes.bool,
1212
placement: PropTypes.string,
13-
transitionName: PropTypes.string,
13+
transitionName: PropTypes.oneOfType([
14+
PropTypes.string,
15+
PropTypes.object,
16+
]),
1417
animation: PropTypes.any,
1518
onVisibleChange: PropTypes.func,
1619
afterVisibleChange: PropTypes.func,

0 commit comments

Comments
 (0)