-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calendar: inputClassName doesn't work #6397
Closed
nivivive opened this issue
Apr 16, 2024
· 0 comments
· Fixed by #6398, leoo1992/GeradorQRCode#23 or leoo1992/GeradorQRCode#27
Closed
Calendar: inputClassName doesn't work #6397
nivivive opened this issue
Apr 16, 2024
· 0 comments
· Fixed by #6398, leoo1992/GeradorQRCode#23 or leoo1992/GeradorQRCode#27
Comments
nivivive
added
the
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
label
Apr 16, 2024
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
gucal
added a commit
that referenced
this issue
Apr 16, 2024
Fix #6397: Calendar inputClassName missing
This was referenced May 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: