Skip to content

Commit

Permalink
Close on click stable fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lookacat committed Aug 14, 2023
1 parent c5a8024 commit 8cd4e7b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/web-app-files/src/components/Search/List.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
:items="availableTags"
:option-filter-label="$gettext('Filter tags')"
:show-option-filter="true"
:close-on-click="true"
class="files-search-filter-tags oc-mr-s"
display-name-attribute="label"
filter-name="tags"
Expand Down
5 changes: 5 additions & 0 deletions packages/web-pkg/src/components/ItemFilter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<oc-filter-chip
:filter-label="filterLabel"
:selected-item-names="selectedItems.map((i) => i[displayNameAttribute])"
:close-on-click="closeOnClick"
@clear-filter="clearFilter"
@show-drop="showDrop"
>
Expand Down Expand Up @@ -107,6 +108,10 @@ export default defineComponent({
type: Array,
required: false,
default: () => []
},
closeOnClick: {
type: Boolean,
default: false
}
},
emits: ['selectionChange'],
Expand Down

0 comments on commit 8cd4e7b

Please sign in to comment.