Skip to content

Conversation

@roncodes
Copy link
Member

@roncodes roncodes commented Dec 6, 2025

  • Remove conflicting @value binding from Input helper to give AutoNumeric sole control
  • Add did-update modifier to reactively sync external value changes
  • Implement handleValueChanges action to update AutoNumeric when @value changes
  • Add rawValueDivisor: 100 option to handle cents/dollars conversion natively
  • Remove internal @Tracked value property and rely on @args.value as single source of truth
  • Switch to autoNumeric:rawValueModified event for more accurate change detection
  • Simplify onChange callback to pass raw value directly
  • Update setCurrency to use autonumeric.update() instead of set()

This fixes the issue where MoneyInput would not update when the bound value changed, causing stale values to persist when forms were reused without page refresh.

- Remove conflicting @value binding from Input helper to give AutoNumeric sole control
- Add did-update modifier to reactively sync external value changes
- Implement handleValueChanges action to update AutoNumeric when @value changes
- Add rawValueDivisor: 100 option to handle cents/dollars conversion natively
- Remove internal @Tracked value property and rely on @args.value as single source of truth
- Switch to autoNumeric:rawValueModified event for more accurate change detection
- Simplify onChange callback to pass raw value directly
- Update setCurrency to use autonumeric.update() instead of set()

This fixes the issue where MoneyInput would not update when the bound value changed,
causing stale values to persist when forms were reused without page refresh.
@roncodes roncodes changed the base branch from main to dev-v0.3.13 December 6, 2025 04:10
@roncodes roncodes merged commit a9d8d9f into dev-v0.3.13 Dec 6, 2025
4 checks passed
@roncodes roncodes deleted the fix/money-input-state-management branch December 6, 2025 04:11
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