Comments (11)
So it seems the problem is in react-icons: tailwindlabs/heroicons#1164 (comment):
Hey, this isn't our issue. The library is copying/republishing our icons but not handling them right:
That script should not convert any data attributes to camel case.
From looking at this code I feel that besides aria-
, also data-
-attributes should not be camel-cased.
from react-icons.
v5.2.0 released!
from react-icons.
The same situation
from react-icons.
same here with nextjs v14.2.1
from react-icons.
Getting it with: import {HiOutlineEnvelope} from "react-icons/hi2";
Solution: use other icons.
from react-icons.
It is not just that icon. I am getting it with multiple different ones.
from react-icons.
Same issue,
Warning: React does not recognize the
dataSlot
prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercasedataslot
instead. If you accidentally passed it from a parent component,remove it from the DOM element.
thanks
from react-icons.
I noticed it too, i'm using a lot of the hero icons v2
I checked the hi2 repo and found for example this
https://github.com/tailwindlabs/heroicons/blob/master/svgo.20.solid.mjs has a custom attribute for the data-slot = icon
. Is there a way to ignore or unset those properties
from react-icons.
I noticed it too, i'm using a lot of the hero icons v2
I checked the hi2 repo and found for example this https://github.com/tailwindlabs/heroicons/blob/master/svgo.20.solid.mjs has a custom attribute for the
data-slot = icon
. Is there a way to ignore or unset those properties
Thanks @michaelboke , I created an issue over there: tailwindlabs/heroicons#1164.
Though: they use data-slot
, not dataSlot
. So maybe the issue is in react-icons after all?
from react-icons.
Got same issue after updating react-icons from 5.0.1 to 5.1.0
For temporary solution downgrade it to 5.0.1 and the issue is resolved.
from react-icons.
v5.2.0 released!
Thank you!
from react-icons.
Related Issues (20)
- [Feature]: Update Remix Icon version 4.2.0 HOT 1
- [Feature]: Heroicons Micro HOT 2
- Add Farcaster Icon
- [Feature]: Add Element
- [Feature]: Add Gravatar
- @react-icons/all-files haven't been updated since 2021 HOT 1
- [Feature]: how to change icon size HOT 2
- [Feature]: Update Font Awesome once BlueSky has an icon. HOT 4
- [Feature]: Border HOT 2
- [Feature]: How to implement icon search and render by icon name?
- [Bug]: Stackblitz import error
- [Bug]: Wrong material icon set (eg: delete icon) HOT 1
- [Feature]: Missing Ionic Chevron Collapse/Expand icons. HOT 2
- [Bug]: Conflict Between React-Icons and Next + Cypress HOT 3
- [Bug]: HiMiniSquaresPlus causes console error in React project! HOT 2
- [Bug]: Tabler filled icons missing HOT 3
- Dynamic icons
- [Bug]: Module '"react-icons/pi"' has no exported member 'PiPicnicTable'. HOT 2
- [Feature]: Add Lark(Feishu) Icon
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-icons.