File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
packages/components/src/utils Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,16 @@ export const handleFrameworkEventAngular = (
66) : void => {
77 // Change event to work with reactive and template driven forms
88 component . propagateChange ( event . target [ modelValue ] ) ;
9- component . writeValue ( event . target [ modelValue ] ) ;
9+
10+ // Skip writeValue for user-initiated change events on signal-based properties
11+ // to prevent double event firing. The propagateChange call above is sufficient
12+ // for notifying Angular forms of the change.
13+ // For signal-based properties like 'checked', the component's signal will be
14+ // updated through the normal Angular change detection cycle.
15+ const isSignalBasedProperty = modelValue === 'checked' || modelValue === 'disabled' ;
16+ if ( ! isSignalBasedProperty ) {
17+ component . writeValue ( event . target [ modelValue ] ) ;
18+ }
1019} ;
1120
1221export const handleFrameworkEventVue = (
You can’t perform that action at this time.
0 commit comments