verbb / icon-picker

A Craft CMS field to select SVG or font icons from a folder for use in your content.
Other
17 stars 8 forks source link

Feather Icons not showing in CMS #85

Open jamiewade opened 5 months ago

jamiewade commented 5 months ago

Describe the bug

When I create an Icon Picker field and use Feather Icons as the icon type, they do not show in the CMS:

Screenshot 2024-01-11 at 11 14 09

The selected icon does sometimes show when the dropdown field is closed:

Screenshot 2024-01-11 at 11 20 13

I'm not seeing any console errors.

Steps to reproduce

  1. Create an Icon Picker field with the Feather Icons icon type
  2. View the field in the CMS

Craft CMS version

4.5.13

Plugin version

2.0.16

Multi-site?

No

Additional context

No response

engram-design commented 5 months ago

Strange, that's showing correctly for me

image

One thing that might be an issue is the speed at which the remote font is loaded and initialized. You can see how with initialize the icons here CleanShot 2024-01-12 at 10 59 44@2x

I'm wondering if the call to feather.replace(); might be not the best approach here.

Just for fun, can you modify the timeout to something like (like 5000 for 5s) here and try again?