Skip to content
This repository was archived by the owner on Nov 9, 2024. It is now read-only.

Commit ec9a992

Browse files
committed
Remove .defaultProps
1 parent cb8a54e commit ec9a992

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Tippy.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ function Tippy({
2727
content,
2828
className,
2929
onCreate,
30-
isEnabled = true,
3130
isVisible,
31+
isEnabled = true,
32+
ignoreAttributes = true,
3233
...nativeProps
3334
}) {
3435
const [isMounted, setIsMounted] = useState(false)
@@ -39,6 +40,7 @@ function Tippy({
3940

4041
const options = {
4142
...nativeProps,
43+
ignoreAttributes,
4244
content: containerRef.current,
4345
}
4446

@@ -124,10 +126,6 @@ Tippy.propTypes = {
124126
className: PropTypes.string,
125127
}
126128

127-
Tippy.defaultProps = {
128-
ignoreAttributes: true,
129-
}
130-
131129
export default forwardRef(function TippyWrapper({ children, ...props }, ref) {
132130
return (
133131
<Tippy {...props}>

0 commit comments

Comments
 (0)