Skip to content

Commit 734b81e

Browse files
authored
Merge pull request #47 from tanishi109/transitionname-proptypes
Added PropTypes for TransitionName. Fix #46.
2 parents a12dd91 + 5f86f00 commit 734b81e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Trigger.jsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ const Trigger = React.createClass({
3838
popupClassName: PropTypes.string,
3939
popupPlacement: PropTypes.string,
4040
builtinPlacements: PropTypes.object,
41-
popupTransitionName: PropTypes.string,
41+
popupTransitionName: PropTypes.oneOfType([
42+
PropTypes.string,
43+
PropTypes.object,
44+
]),
4245
popupAnimation: PropTypes.any,
4346
mouseEnterDelay: PropTypes.number,
4447
mouseLeaveDelay: PropTypes.number,
@@ -53,7 +56,10 @@ const Trigger = React.createClass({
5356
onPopupAlign: PropTypes.func,
5457
popupAlign: PropTypes.object,
5558
popupVisible: PropTypes.bool,
56-
maskTransitionName: PropTypes.string,
59+
maskTransitionName: PropTypes.oneOfType([
60+
PropTypes.string,
61+
PropTypes.object,
62+
]),
5763
maskAnimation: PropTypes.string,
5864
},
5965

0 commit comments

Comments
 (0)