Skip to content

Commit

Permalink
fix(PageItem): remove disabled attribute on span (#6455)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyletsang committed Oct 4, 2022
1 parent 8aa08e3 commit 249c178
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/PageItem.tsx
Expand Up @@ -59,7 +59,7 @@ const PageItem: BsPrefixRefForwardingComponent<'li', PageItemProps> =
style={style}
className={classNames(className, 'page-item', { active, disabled })}
>
<Component className="page-link" disabled={disabled} {...props}>
<Component className="page-link" {...props}>
{children}
{active && activeLabel && (
<span className="visually-hidden">{activeLabel}</span>
Expand Down
1 change: 0 additions & 1 deletion test/PageItemSpec.tsx
Expand Up @@ -48,7 +48,6 @@ describe('<PageItem>', () => {
pageItemElem.classList.contains('disabled').should.be.true;

pageItemInnerElem.classList.contains('page-link').should.be.true;
pageItemInnerElem.getAttribute('disabled')!.should.exist;
});
});
});

0 comments on commit 249c178

Please sign in to comment.