Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #9625 - Searching icons for "box" returns all icons #9848

Merged

Conversation

bjarnef
Copy link
Contributor

@bjarnef bjarnef commented Feb 19, 2021

Prerequisites

  • I have added steps to test this contribution in the description below

If there's an existing issue for this PR then this fixes #9625

Description

This PR fixes issues with filtering in icon picker and searching for terms like box, view and svg because these are included in the svgString property. We only need to filter on name property. In future releases we might be able to filter on tags or similar - see #9122

KnrdnWkyJc

Btw in this GIF I have installed the Material Design Icon Pack, which doen't use SVG icons, but demonstrate the filtering also works with custom icons.

This is similar to other filtering where we are working with objects, e.g. in block picker where filter on "image" doesn't really filter anything as mentioned in #9831
We can look at this in another PR.

@bjarnef bjarnef changed the title Only filter on name property and add searchTerm to vm.filter Only filter on name property Feb 19, 2021
@bjarnef bjarnef changed the title Only filter on name property Only filter on name property in icon picker Feb 19, 2021
@nul800sebastiaan nul800sebastiaan changed the title Only filter on name property in icon picker Fixes #9625 - Searching icons for "box" returns all icons Feb 21, 2021
@nul800sebastiaan nul800sebastiaan merged commit 01991db into umbraco:v8/contrib Feb 21, 2021
@nul800sebastiaan
Copy link
Member

Thanks again @bjarnef - good stuff! 👍

@bjarnef bjarnef deleted the v8/bug/icon-picker-search branch February 21, 2021 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Searching icons for "box" returns all icons
2 participants