Skip to content
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

PureInput Value Patch #95

Merged
merged 3 commits into from
Oct 16, 2024
Merged

PureInput Value Patch #95

merged 3 commits into from
Oct 16, 2024

Conversation

ModernMAK
Copy link
Contributor

PureInput Value Patch

Description

Bumps System.Text.Json to 8.0.5, unrelated to bug

When PureInput's binding value changes, the content does not update.

This was caused by the wrapper value innerValue only being assigned on creation.

To minimize changes, I abused the fact that TextValue's only purpose is to serve as a bind target 'getter' to minimize code changes.

TextValue now directly exposes the underlying Value parameter, while OnChange/OnInput update Value parameter via ValueChanged

Security vulnerability is causing error on builds
I'm assuming InnerValue was to safely control the component's bound value without exposing the parent value.

Trouble is, we never properly updated this.

Rather than fix that, I opted to abuse the fact that we wrapped the bind in the first place, since TextValue only needs to be read-only and OnChange/OnInput pass it up the parent bind
@ModernMAK ModernMAK marked this pull request as ready for review October 15, 2024 18:55
@ModernMAK ModernMAK merged commit eeed26d into main Oct 16, 2024
3 of 5 checks passed
@ModernMAK ModernMAK deleted the PureInput-patch branch October 16, 2024 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants