Skip to content

Commit

Permalink
Merge pull request #866 from hit-pay/HIT-8598
Browse files Browse the repository at this point in the history
[HIT-8598] Fixed UX for search filter
  • Loading branch information
kewcoder authored Dec 19, 2024
2 parents 54e02b5 + 7229a7d commit a778228
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@orchidui/core",
"description": "Orchid UI, Library Vue 3 tailwind css",
"version": "1.1.31-1",
"version": "1.1.31-2",
"type": "module",
"scripts": {
"build": "vite build"
Expand Down
6 changes: 1 addition & 5 deletions packages/core/src/DataTable/OcDataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,7 @@ const showBulkAction = computed(() => {
const addQuery = (query) => {
if (!query.trim() || queries.value.includes(query)) return
if (!filterOptions.value) {
queries.value = [query]
} else {
queries.value.push(query)
}
queries.value = [query]
applyFilter()
emit('search-query-changed', query)
}
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/DataTable/OcFilterSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const onSearchOpen = async () => {
@keyup.enter="
() => {
$emit('addQuery', query)
query = ''
}
"
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/dashboard/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@orchidui/dashboard",
"description": "Orchid Dashboard UI , Dashboard Ui Library Vue 3 tailwind css",
"version": "1.1.31-1",
"version": "1.1.31-2",
"type": "module",
"scripts": {
"build": "vite build"
Expand Down

0 comments on commit a778228

Please sign in to comment.