Skip to content
Snippets Groups Projects
Verified Commit 0c5f151f authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed some debouncing issues

parent e1817cc5
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ export default {
$('.ui.dropdown').dropdown()
},
methods: {
updateQueryString: function () {
updateQueryString: _.debounce(function () {
this.$router.replace({
query: {
query: this.query,
......@@ -112,7 +112,7 @@ export default {
ordering: this.getOrderingAsString()
}
})
},
}, 500),
fetchData: _.debounce(function () {
var self = this
this.isLoading = true
......
......@@ -27,7 +27,7 @@ export default {
let wrapper = function (event) {
// we check here the event is not triggered from an input
// to avoid collisions
if (!$(event.target).is(':input, [contenteditable]')) {
if (!$(event.target).is('.field, :input, [contenteditable]')) {
handler(event)
}
}
......
......@@ -50,7 +50,8 @@ export default new Router({
component: Favorites,
props: (route) => ({
defaultOrdering: route.query.ordering,
defaultPage: route.query.page
defaultPage: route.query.page,
defaultPaginateBy: route.query.paginateBy
})
},
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment