Skip to content

Commit 3d825d1

Browse files
committed
add comments
1 parent 1f4463a commit 3d825d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

web_src/js/modules/tippy.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import tippy from 'tippy.js';
33
const visibleInstances = new Set();
44

55
export function createTippy(target, opts = {}) {
6+
// the callback functions should be destructured from opts,
7+
// because we should use our own wrapper functions to handle them, do not let the user override them
68
const {onHide, onShow, onDestroy, ...other} = opts;
79
const instance = tippy(target, {
810
appendTo: document.body,

0 commit comments

Comments
 (0)