Skip to content

Add clear filters from within big filter #10

Description

@LorenzoSapora

Hey, great package. Feature suggestion: Adding the 'clear filter' button to the big filter.

Here's the codeblock from the default component.

                <div v-if="filtersAreApplied" class="bg-30 border-b border-60">
                    <button
                        @click="$emit('clear-selected-filters')"
                        class="py-2 w-full block text-xs uppercase tracking-wide text-center text-80 dim font-bold focus:outline-none"
                    >
                        {{ __('Reset Filters') }}
                    </button>
                </div>

I'm not 100% up on my vue lang, but I assume this is all that's needed, if you're extending the existing filter (with a few css class tweaks).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions