Skip to content

Commit

Permalink
Allow users to specify onUpdate() in popperOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Feb 23, 2019
1 parent 2893f9f commit 294351a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/createTippy.js
Expand Up @@ -503,6 +503,10 @@ export default function createTippy(reference, collectionProps) {
styles[getPopperPlacement(instance.popper)] = getOffsetDistanceInPx(
instance.props.distance,
)

if (popperOptions.onUpdate) {
popperOptions.onUpdate(data)
}
},
})
}
Expand Down

0 comments on commit 294351a

Please sign in to comment.