-
Notifications
You must be signed in to change notification settings - Fork 1.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
Missing PT Option for IconField in Password #6555
Comments
Hi there! Can I take it? I want to clarify something, when updating PT options for password, I also need to update password PT options in PASS THROUGH tab in documentation? |
The docs automatically update from the .d.ts changes |
Of course! |
@KirilCycle Can you give me an estimated time for this task? I was planning to release a new version for some of the bugs today |
Well, ill try to push the PR within 3 hours+- |
Nice teamwork @KirilCycle ! |
Thanks, @KirilCycle. I've just updated to 10.6.5, and the pt option is indeed available now. However, className does not get rendered. e.g. the following: pt={{
input: { className: "flex-1" },
iconField: { className: "flex-1" }
}} |
@sja-cslab because it's an InputText you have to do "input: { root: { className: "test" } }" |
@melloware if you are talking about someting like pt={{
input: { root: { className: "qwertz" } },
iconField: { className: "flex-1" }
}} that does not help and not even work (in case this nesting is even possible) - however, I'm not interested in the |
@melloware here's a stackblitz so you may understand my intention |
Did you try iconField with "root" it's the same principal as input. |
@melloware good hint, that's working - stackblitz updated. Ty.
|
Ok great! It's whenever you are passing through to another subcompnent of a component like IconField or InputText it needs to be root. |
pt={{
input: { className: "flex-1" },
iconField: {
root: { className: 'flex flex-1' },
}
}} works if the parent of that password is display: flex and allows growing. So if you use Floating labels, you password got nested one more level i think so you need to pass flex to this |
Describe the bug
Relates to #6349 - fixed by @melloware in #6493.
The point here is that I'm using
<Password>
withindisplay: flex
, and I'm no longer able to let the input grow. The reason is that there is no PT option within<Password>
to give anyclassName
down toIconField
.The relevant code can be found in password
Reproducer
https://primereact.org/password/#togglemask
PrimeReact version
10.6.4
React version
18.x
Language
ALL
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: