Pass Through: Set data-testid
, etc. for input's DOM element, etc.
#4676
Labels
Typescript
Issue or pull request is *only* related to TypeScript definition
Milestone
Describe the feature you would like to see added
My project uses PrimeReact and e2e testing (Cypress).
I would like to be able to set
data-testid
,data-cy
, etc. using the "pass through (pt)"Is your feature request related to a problem?
Attempting to set the above will result a type error.
Describe the solution you'd like
I would like to be able to set
data-testid
,data-cy
, etc. using the "pass through (pt)" without causing a type errorDescribe alternatives you have considered
I tried to set
data-testid
in the "password component" like below, without using the "pass through (pt)", however it causeddata-testid
split into two elements (div and input).Password Component
div and input
Additional context
No response
The text was updated successfully, but these errors were encountered: