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 = (
6
6
) : void => {
7
7
// Change event to work with reactive and template driven forms
8
8
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
+ }
10
19
} ;
11
20
12
21
export const handleFrameworkEventVue = (
You can’t perform that action at this time.
0 commit comments