File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 11import React , {
2- ReactHTML ,
32 HTMLAttributes ,
43 MouseEvent ,
54 KeyboardEvent ,
@@ -18,7 +17,6 @@ export type PillProps = {
1817 label ?: string ;
1918 truncate ?: boolean ;
2019 disabled ?: boolean ;
21- tag ?: keyof ReactHTML ;
2220 icon ?: {
2321 category ?: IconCategory ;
2422 icon ?: string ;
@@ -35,7 +33,6 @@ export const Pill: FC<PillProps> = (props) => {
3533 icon,
3634 disabled,
3735 label,
38- tag,
3936 truncate,
4037 className,
4138 pillRef,
@@ -57,15 +54,13 @@ export const Pill: FC<PillProps> = (props) => {
5754 }
5855 } ) ;
5956
60- // eslint-disable-next-line @typescript-eslint/no-explicit-any
61- const Tag : any = disabled ? 'span' : tag || 'a' ;
6257 const pillClassNames = classnames (
6358 'slds-pill' ,
6459 { 'slds-truncate' : truncate } ,
6560 className
6661 ) ;
6762 return (
68- < Tag
63+ < span
6964 ref = { pillRef }
7065 className = { pillClassNames }
7166 onKeyDown = { onKeyDown }
@@ -88,6 +83,6 @@ export const Pill: FC<PillProps> = (props) => {
8883 tabIndex = { - 1 }
8984 onClick = { onPillRemove }
9085 />
91- </ Tag >
86+ </ span >
9287 ) ;
9388} ;
You can’t perform that action at this time.
0 commit comments