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
The following code issues validateDOMNesting warning because <li> cannot appear as descendant of <li>.
<li>
<PaginationItem> <PaginationLink href="#">1</PaginationLink> </PaginationItem>
According to the definition of PaginationLink as shown below it uses the <PaginationItem> within its definition leading to above warning.
PaginationLink
<PaginationItem>
const PaginationLink = ({ className, isActive, size = "icon", ...props }: PaginationLinkProps) => ( <PaginationItem> <a aria-current={isActive ? "page" : undefined} className={cn( buttonVariants({ variant: isActive ? "outline" : "ghost", size, }), className )} {...props} /> </PaginationItem> ) PaginationLink.displayName = "PaginationLink"
The text was updated successfully, but these errors were encountered:
Fixed in #2190 . Thanks!
Sorry, something went wrong.
No branches or pull requests
The following code issues validateDOMNesting warning because
<li>
cannot appear as descendant of<li>
.According to the definition of
PaginationLink
as shown below it uses the<PaginationItem>
within its definition leading to above warning.The text was updated successfully, but these errors were encountered: