homeflowjs 0.8.5 → 0.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/app/recaptcha.js +2 -2
  2. package/package.json +1 -1
package/app/recaptcha.js CHANGED
@@ -34,7 +34,7 @@ export default () => {
34
34
 
35
35
  // add the recaptcha script only after a form input is focused
36
36
  for (let i = 0; i < formSelectors.length; i++) {
37
- const formInputs = document.querySelectorAll(`${formSelectors[i]} input`);
37
+ const formInputs = document.querySelectorAll(`${formSelectors[i]} input, ${formSelectors[i]} textarea`);
38
38
  formInputs.forEach((input) => {
39
39
  input.addEventListener('focus', () => {
40
40
  if (!document.getElementById('recaptcha-script')) {
@@ -78,7 +78,7 @@ export default () => {
78
78
 
79
79
  // add the recaptcha script only after a form input is focused
80
80
  for (let i = 0; i < formSelectors.length; i++) {
81
- const formInputs = document.querySelectorAll(`${formSelectors[i]} input`);
81
+ const formInputs = document.querySelectorAll(`${formSelectors[i]} input, ${formSelectors[i]} textarea`);
82
82
  formInputs.forEach((input) => {
83
83
  input.addEventListener('focus', () => {
84
84
  if (!document.getElementById('recaptcha-script')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homeflowjs",
3
- "version": "0.8.5",
3
+ "version": "0.8.6",
4
4
  "description": "JavaScript toolkit for Homeflow themes",
5
5
  "main": "index.js",
6
6
  "scripts": {