Skip to content

Commit

Permalink
data index attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
shivani170 committed Jan 30, 2024
1 parent 965c93a commit d536a95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Common/CustomInput/CustomInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export function CustomInput({
required,
additionalErrorInfo,
inputWrapClassName = '',
dataIndex= ''
}: CustomInputProps) {
function handleError(error: any): any[] {
if (!Array.isArray(error)) {
Expand Down Expand Up @@ -96,6 +97,7 @@ export function CustomInput({
{renderInputLabel()}
<input
data-testid={dataTestid}
data-index={dataIndex}
type={type}
name={name}
autoComplete={autoComplete}
Expand Down
1 change: 1 addition & 0 deletions src/Common/CustomInput/Types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ export interface CustomInputProps {
required?: boolean
additionalErrorInfo?: React.ReactNode
inputWrapClassName?: string
dataIndex?: string
}

0 comments on commit d536a95

Please sign in to comment.