react-hubspot-form
Advanced tools
Comparing version 1.3.1 to 1.3.3
@@ -51,2 +51,6 @@ 'use strict'; | ||
if (window.hbspt) { | ||
// protect against component unmounting before window.hbspt is available | ||
if (this.el === null) { | ||
return; | ||
} | ||
var props = _extends({}, this.props); | ||
@@ -78,2 +82,6 @@ delete props.loading; | ||
value: function findFormElement() { | ||
// protect against component unmounting before form is added | ||
if (this.el === null) { | ||
return; | ||
} | ||
var form = this.el.querySelector('form'); | ||
@@ -97,3 +105,3 @@ if (form) { | ||
this.onSubmitInterval = setInterval(function () { | ||
if (!_this2.el.querySelector('form')) { | ||
if (!_this2.el.querySelector('iframe')) { | ||
clearInterval(_this2.onSubmitInterval); | ||
@@ -100,0 +108,0 @@ if (_this2.props.onSubmit) { |
{ | ||
"name": "react-hubspot-form", | ||
"version": "1.3.1", | ||
"version": "1.3.3", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "react", |
Sorry, the diff of this file is not supported yet
251513
128