-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
fix(#15241): removed invalid transforms on Inputs #15243
fix(#15241): removed invalid transforms on Inputs #15243
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
That might not be the only mistake actually. |
I'll take a look at it asap to provide a fix (if nobody did it already). |
I think it so #15241 |
Yep, my bad 😓, I'll remove the transforms asap, where it broke things |
…d transforms on Inputs
I added the remaining fixes to all invalid transform Inputs. It ended up including the same changes in the PR #15248. |
Great! I'll close mine then |
fixes #15241 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
About the last commit, why not simply make a specific transform function instead of completely removing it, as it could increase the DX? |
Do you mean something similar to what I suggested in #15264? Just curious, how do the input transforms enhance the DX? |
Yes, exactly! <!-- before -->
<p-inputnumber [minFractionDigit]="2">
<p-button [rounded]="true">
<!-- after -->
<p-inputnumber minFractionDigit="2">
<p-button rounded> As you can see, especially with boolean "flags", it is less code to write and this is one good way for using input transforms. Before that transform function, a lot of libraries already provided such things using setters and now it is just easier. |
I agree but I won't have time to add this improvement. The purpose of this PR is to get this library back to a working state. If this PR is still open a week from now I can try to add custom transforms on InputNumber's minFractionDigit/maxFractionDigit. |
Hi @BGBRWR, Thanks a lot for the effort and support! |
Currently setting
expandedRowKeys
oreditingRowKeys
with anything will convert them to booleans; Which is the wrong type and breaks working with these inputs.Fixes #15241 #15264