We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d930f29 + fda85e3 commit b484bc4Copy full SHA for b484bc4
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@svelte-plugins/tooltips",
3
- "version": "0.1.4",
+ "version": "0.1.5",
4
"license": "MIT",
5
"description": "A simple tooltip action and component designed for Svelte.",
6
"author": "Kieran Boyle (https://github.com/dysfunc)",
src/tooltip.svelte
@@ -80,8 +80,10 @@
80
component = null;
81
}
82
83
- containerRef.removeEventListener('mouseenter', onMouseEnter);
84
- containerRef.removeEventListener('mouseleave', onMouseLeave);
+ if (containerRef !== null) {
+ containerRef.removeEventListener('mouseenter', onMouseEnter);
85
+ containerRef.removeEventListener('mouseleave', onMouseLeave);
86
+ }
87
});
88
89
$: isComponent = typeof content === 'object';
0 commit comments