Browse Source

Update Tooltip.svelte

Timothy J. Baek 1 year ago
parent
commit
b9444d00b3
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/lib/components/common/Tooltip.svelte

+ 3 - 1
src/lib/components/common/Tooltip.svelte

@@ -4,6 +4,7 @@
 
 	export let placement = 'top';
 	export let content = `I'm a tooltip!`;
+	export let touch = true;
 
 	let tooltipElement;
 	let tooltipInstance;
@@ -15,7 +16,8 @@
 			tooltipInstance = tippy(tooltipElement, {
 				content: content,
 				placement: placement,
-				allowHTML: true
+				allowHTML: true,
+				touch: touch
 			});
 		}
 	}