Skip to content

Commit

Permalink
Merge pull request #156 from amansinghbais/132-persistent-search
Browse files Browse the repository at this point in the history
Fixed: querystring persist on searchbar on group change if not updated in state by keyEnter event (#132)
  • Loading branch information
ravilodhi authored Mar 8, 2024
2 parents a878559 + b418612 commit c3788f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/PermissionItems.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="search-permissions">
<ion-searchbar :placeholder="translate('Search permissions')" :value="query.queryString" @keyup.enter="query.queryString = $event.target.value; updateQuery()" />
<ion-searchbar :placeholder="translate('Search permissions')" v-model="query.queryString" @ionInput="updateQuery()" />
<ion-item lines="none">
<ion-icon :icon="shieldCheckmarkOutline" slot="start" />
<ion-label>{{ translate("Only selected permissions") }}</ion-label>
Expand Down
2 changes: 1 addition & 1 deletion src/views/Permissions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export default defineComponent({
} while (resp.data.docs.length >= 250);
}));
} catch (err) {
console.log(err);
console.error(err);
}
return permissionsByGroup;
Expand Down

0 comments on commit c3788f0

Please sign in to comment.