Uncaught Rangeerror error: Maximum call stack size exceeded

Asked

Viewed 971 times

1

I’m having an error in my action on my console apesenta o seguinte erro Uncaught Rangeerror: Maximum call stack size exceeded

Could someone help me I’ll leave link of scripet and page where If I’m running the script here I don’t know what I’m doing wrong https://jefferson-bruno-veneros-stella-799bed.webflow.io/

<script>

$(document).ready(function() {
    $('#herobotslider div:nth-child(2)').trigger('tap');
});

var Webflow = Webflow || [];
Webflow.push(function() {
  var l = $('#herobotslider .w-slider-arrow-left');
  var r = $('#herobotslider .w-slider-arrow-right');
  $('#heroslidernav')
    .on('click', '.slider-left', function() {
      l.trigger('tap');
    })
    .on('click', '.slider-right', function() {
      r.trigger('tap');
    });
});

  var Webflow = Webflow || [];
Webflow.push(function() {
  var l = $('.hero-img-slider .w-slider-arrow-left');
  var r = $('.hero-img-slider .w-slider-arrow-right');
  $('#heroslidernav')
    .on('click', '.slider-left', function() {
      l.trigger('tap');
    })
    .on('click', '.slider-right', function() {
      r.trigger('tap');
    });
});


  var Webflow = Webflow || [];
Webflow.push(function() {
  var l = $('#herobotslider .w-slider-arrow-left');
  var r = $('#herobotslider .w-slider-arrow-right');
  $('#hrs')
    .on('click', '.sss', function() {
      l.trigger('tap');
    })
    .on('click', '.hero-bottom-slider-div', function() {
      r.trigger('tap');
    });
});

  var Webflow = Webflow || [];
Webflow.push(function() {
  var l = $('.hero-img-slider .w-slider-arrow-left');
  var r = $('.hero-img-slider .w-slider-arrow-right');
  $('#hrs')
    .on('click', '.sss', function() {
      l.trigger('tap');
    })
    .on('click', '.hero-bottom-slider-div', function() {
      r.trigger('tap');
    });
});

</script>

1 answer

0


You are entering an infinite loop.

when you call "tap" on #herobotslider you call tap on yourself.

Even if you indicate the class #herobotslider .qualquer will be called first the click on #herobotslider.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.