We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have defined a UISrefActive component like the following, but it is throwing an error about an undefined value for class.
UISrefActive
undefined
class
<UISrefActive class="active"> <UISref to="home"> <a> <span className="glyphicon glyphicon-dashboard" aria-hidden="true"></span> Dashboard </a> </UISref> </UISrefActive>
The error in the Console is:
Console
Warning: Failed prop type: The prop class is marked as required in UISrefActive, but its value is undefined... in UISrefActive
The text was updated successfully, but these errors were encountered:
Hi, I cannot find anything wrong with your code. Can you reproduce the error in a plunker/jsbin so I can take a deeper look?
Sorry, something went wrong.
I found the culprit. I was using the https://github.com/insin/babel-plugin-react-html-attrs plugin for the JSX transform in Webpack and that was changing class to className during build.
className
Won't be using that plugin again!
No branches or pull requests
I have defined a
UISrefActive
component like the following, but it is throwing an error about anundefined
value forclass
.The error in the
Console
is:The text was updated successfully, but these errors were encountered: