alvarotrigo / alvarotrigo/pagePiling.js
Missing empty section check
Đang mở
- Ngôn ngữ chính
- JavaScript
- Star
- 4.1k
- Fork
- 633
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Hi. There is a bug in this line:
If any other anchor changes the hash of the URL to one name that doesn't exist in the sectionAnchor array, the page will scroll to the first section!
https://github.com/alvarotrigo/pagePiling.js/blob/4f3de9c79948c254f38610bd321ca42e258782e9/jquery.pagepiling.js#L471
I think that a check like this is missing:
```
if(section.length>0){
scrollPage(section);
}
```
Thanks,
Gonzalo
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.