Menu icon Foundation
F5.2.1 Orbit 'circular' error

It seems the 'circular:false' option in the Orbit 5.2.1 release causes an error if you click on the last slide.

Here is my codepen: http://codepen.io/anon/pen/CEAgq

If I click on the slider 3 times (the first two times are to get to the last slide), I get the following error:
TypeError: current is undefined at foundation.js 3380

If I use the data-option "circular:true", I can click on the slider indefinitely without getting the error.

Orbit5.2.1circular

It seems the 'circular:false' option in the Orbit 5.2.1 release causes an error if you click on the last slide.

Here is my codepen: http://codepen.io/anon/pen/CEAgq

If I click on the slider 3 times (the first two times are to get to the last slide), I get the following error:
TypeError: current is undefined at foundation.js 3380

If I use the data-option "circular:true", I can click on the slider indefinitely without getting the error.

Rafi Benkual over 5 years ago

Thanks for the report. Can you post this issue on GitHub because we can address it there.

Glenn Korban over 5 years ago

Looks like echee beat me to the punch.
https://github.com/zurb/foundation/issues/4726

Rafi Benkual over 5 years ago

Hey everyone. Joe Workman fixed this with a PR. https://github.com/zurb/foundation/pull/4812 It will be in 5.2.2 or you can target your update to master now.