You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gucal
added
Type: Bug
Issue contains a defect related to a specific component.
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Apr 16, 2024
Describe the bug
inputClassName on Calendar doesn't seem to add classes. Use the demo at https://primereact.org/calendar/ theming, change:
<Calendar value={date} onChange={(e) => setDate(e.value)} inputClassName="asdfasdf"/>
class is not added
Bug seems to have been introduced in 10.6.3 in this PR.
Previously the line used to say:
And now it says:
which only outputs:
'p-inputtext p-component'
It should say:
which would output the expected result:
'asdfasdf p-inputtext p-component'
Reproducer
No response
PrimeReact version
10.6.3
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
<Calendar value={date} onChange={(e) => setDate(e.value)} inputClassName="asdfasdf"/>
Expected behavior
Calendar's input should have a computed className of 'asdfasdf p-inputtext p-component'
The text was updated successfully, but these errors were encountered: