react-countup
Advanced tools
Comparing version 4.1.2 to 4.1.3
@@ -199,3 +199,3 @@ 'use strict'; | ||
// Warn when user didn't use containerRef at all | ||
warning(_this.containerRef.current && _this.containerRef.current instanceof HTMLElement, "Couldn't find attached element to hook the CountUp instance into! Try to attach \"containerRef\" from the render prop to a an HTMLElement, eg. <span ref={containerRef} />."); | ||
warning(_this.containerRef.current && (_this.containerRef.current instanceof HTMLElement || _this.containerRef.current instanceof SVGTextElement), "Couldn't find attached element to hook the CountUp instance into! Try to attach \"containerRef\" from the render prop to a an HTMLElement, eg. <span ref={containerRef} />."); | ||
} | ||
@@ -202,0 +202,0 @@ |
{ | ||
"name": "react-countup", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"description": "A React component wrapper around CountUp.js", | ||
@@ -5,0 +5,0 @@ "author": "Glenn Reyes <glenn@glennreyes.com> (https://twitter.com/glnnrys)", |
25739
457