Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
smouillour committed Apr 3, 2024
1 parent be131a7 commit b4b9378
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 248 deletions.
1 change: 1 addition & 0 deletions packages/a11y/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@talend/eslint-plugin": "^1.1.1",
"@talend/scripts-core": "^16.3.5",
"@talend/scripts-config-typescript": "^11.2.1",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.2.1",
"@testing-library/user-event": "^14.5.2",
"@types/date-fns": "^2.6.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ const CollapsiblePanelHeader = forwardRef(
(actionItem, index) =>
actionItem && (
<ButtonIcon
{...actionItem}
key={`action-${index}`}
size={buttonIconSize}
onClick={actionItem.callback}
data-test={`action.button.${index}`}
data-testid={`action.button.${index}`}
data-feature={actionItem.dataFeature}
{...actionItem}
>
{actionItem.tooltip}
</ButtonIcon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ import { ButtonIconType } from 'src/components/ButtonIcon/variations/ButtonIcon'
export type PanelHeaderAction = ButtonIconType<any> & {
icon: string;
tooltip: string;
dataFeature: string;
callback: () => unknown;
};
2 changes: 1 addition & 1 deletion packages/stepper/src/stories/Stepper.components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const FormComponentStep1 = () => {
id="randomInput"
label="Random input"
name={field.name}
onChange={e => {
onChange={(e: any) => {
field.onChange(e);
}}
value={field.value}
Expand Down
Loading

0 comments on commit b4b9378

Please sign in to comment.