digitoimistodude / air-light

💨 WordPress starter theme - designed to be minimal, ultra-lightweight (< 20 kB) and easy for all kinds of WordPress projects. 7+years/1000+hours of development and still updating daily! We prefer the original WordPress way of doing things so no strange templating languages or frameworks here.
https://airwptheme.com
MIT License
929 stars 139 forks source link

Anchors smoothing only works if all targets of links before the link exist #203

Open raikasdev opened 9 months ago

raikasdev commented 9 months ago

https://github.com/digitoimistodude/air-light/blob/8f96ea8e6215a36de0457c63a1e2d41ddc454ba3/js/src/modules/anchors.js#L29

This should be continue, not return.

Currently, if any of the targets of a link with hash target do not exist, all links with a hash target will not be smoothed after it.