stop click twice

pull/2037/head
Ayrat Badykov 6 years ago
parent 4e7d74f051
commit 6702a8cdde
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 2
      apps/block_scout_web/assets/js/lib/async_listing_load.js

@ -281,12 +281,14 @@ function firstPageLoad (store) {
event.preventDefault() event.preventDefault()
loadItemsNext() loadItemsNext()
store.dispatch({type: 'NAVIGATE_TO_OLDER'}) store.dispatch({type: 'NAVIGATE_TO_OLDER'})
event.stopImmediatePropagation()
}) })
$element.on('click', '[data-prev-page-button]', (event) => { $element.on('click', '[data-prev-page-button]', (event) => {
event.preventDefault() event.preventDefault()
loadItemsPrev() loadItemsPrev()
store.dispatch({type: 'NAVIGATE_TO_NEWER'}) store.dispatch({type: 'NAVIGATE_TO_NEWER'})
event.stopImmediatePropagation()
}) })
} }

Loading…
Cancel
Save