-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
showMissingIcons = false does not hide the missing icon indicator when icon name is missing #12581
Comments
I've tracked this down. It's due to this check in } else if (iconName && prefix && !config.showMissingIcons) { In your repro, |
So this seems to be a special case where a reserved class is used without another icon name. What should the behavior be? |
Ah, ok. That makes sense. I think we can come back to this once 5.1 is out @mlwilkerson. This is not high enough in priority to tackle it right this moment. |
OK, when the time comes to fix it, we have a regression test ready to enable here: |
+1 |
Also, there is a use case for doing |
I'm developing with FA5 in a WordPress plugin, so it's important that I am able to target which elements I am affecting through my plugin in case other plugins are still using FA4. Here is the config I'm using: import fontawesome from '@fortawesome/fontawesome';
fontawesome.config = {
familyPrefix: 'myprefix',
showMissingIcons: false
}; Here is an example of two elements that are both being affected by FA5 as configured above. <i class="fas myprefix-camera"></i> // My FA5 icon working as expected.
<i class="fa fa-camera"></i> // Another plugin's FA4 icon that is replaced with the animated missing icon. This should not happen. I believe this bug is the reason why the |
Describe the problem
Changing this setting:
Still shows the missing icon indicator.
What did you expect?
Setting
showMissingIcons
to false should hide any missing icon indicator.What version and implementation are you using?
Version: 5.0.8
Browser and version: all
Reproducible test case
https://codepen.io/robmadole/pen/EEVxBX
Bug report checklist
The text was updated successfully, but these errors were encountered: