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 { ...@@ -103,7 +103,7 @@ export default {
$('.ui.dropdown').dropdown() $('.ui.dropdown').dropdown()
}, },
methods: { methods: {
updateQueryString: function () { updateQueryString: _.debounce(function () {
this.$router.replace({ this.$router.replace({
query: { query: {
query: this.query, query: this.query,
...@@ -112,7 +112,7 @@ export default { ...@@ -112,7 +112,7 @@ export default {
ordering: this.getOrderingAsString() ordering: this.getOrderingAsString()
} }
}) })
}, }, 500),
fetchData: _.debounce(function () { fetchData: _.debounce(function () {
var self = this var self = this
this.isLoading = true this.isLoading = true
......
...@@ -27,7 +27,7 @@ export default { ...@@ -27,7 +27,7 @@ export default {
let wrapper = function (event) { let wrapper = function (event) {
// we check here the event is not triggered from an input // we check here the event is not triggered from an input
// to avoid collisions // to avoid collisions
if (!$(event.target).is(':input, [contenteditable]')) { if (!$(event.target).is('.field, :input, [contenteditable]')) {
handler(event) handler(event)
} }
} }
......
...@@ -50,7 +50,8 @@ export default new Router({ ...@@ -50,7 +50,8 @@ export default new Router({
component: Favorites, component: Favorites,
props: (route) => ({ props: (route) => ({
defaultOrdering: route.query.ordering, 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