Skip to content

Commit

Permalink
fix(ui-progress,ui-tag): remove onClick prop from Tag when callback i…
Browse files Browse the repository at this point in the history
…s not provided. Fix Progress dependency mismatch (test-locator)

Closes: INSTUI-4332
  • Loading branch information
git-nandor committed Nov 20, 2024
1 parent bf9d66d commit de22f76
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/ui-progress/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
{ "path": "../ui-testable/tsconfig.build.json" },
{ "path": "../ui-view/tsconfig.build.json" },
{ "path": "../ui-babel-preset/tsconfig.build.json" },
{ "path": "../ui-test-locator/tsconfig.build.json" },
{ "path": "../ui-test-utils/tsconfig.build.json" },
{ "path": "../ui-themes/tsconfig.build.json" }
]
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-tag/src/Tag/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class Tag extends Component<TagProps> {
as={onClick ? 'button' : 'span'}
margin={margin}
type={onClick ? 'button' : undefined}
onClick={onClick ?? this.handleClick}
{...(onClick && { onClick: this.handleClick })}
disabled={disabled || readOnly}
display={undefined}
title={title || (typeof text === 'string' ? text : undefined)}
Expand Down

0 comments on commit de22f76

Please sign in to comment.