Skip to content

fix incorrect retargeting by using bridge ref. - #62

Merged
koculu merged 1 commit into
mainfrom
regression-retargeting-update-wrong-source
Feb 22, 2026
Merged

koculu merged 1 commit into
mainfrom
regression-retargeting-update-wrong-source

Conversation

@koculu

@koculu koculu commented Feb 22, 2026 •

Copy link
Copy Markdown
Member

Fixes :model / single-prop retargeting regression by introducing stable bridge ref handling in single-prop.

What changed

  • Added bridge-based sync for ref props to avoid mutating previously selected source items on retarget.
  • Kept nested forwarded bindings working by recognizing forwarded bridge refs.
  • Simplified single-prop flow with helper functions and clearer branching.
  • Added detailed inline documentation for the algorithm.

Tests

  • Expanded tests/directives/model.spec.ts with regressions for:
    • direct + component retargeting
    • number input retargeting
    • multi-replacement and nested 3-level forwarding
    • list-selection regression (previous item should not be overwritten)

@koculu
koculu merged commit d4c638d into main Feb 22, 2026
1 check passed
@koculu
koculu deleted the regression-retargeting-update-wrong-source branch February 22, 2026 03:42
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.

1 participant