flaviusmatis / flaviusmatis/simplePagination.js
argument event cause error onPageClick
Open
- Dominant language
- JavaScript
- Stars
- 777
- Forks
- 397
- PR merge metrics
- No merged PRs in 30d
Description
If using event like event.preventDefault() in onPageClick method,
it will case error when use the api $(selector).pagination('selectPage', pageNumber);
Because selectPage will not pass the event to the _selectPage.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the onPageClick callback and the selectPage API through the _selectPage entry point. Reproduce the issue with event.preventDefault() and $(selector).pagination('selectPage', pageNumber), then verify that the API path handles the event consistently without raising an error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, jquery
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100