@db-ux/ngx-core-components 3.0.7 → 3.0.8-switch-439d623

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -964,7 +964,15 @@ const CardElevationLevelList = ['1', '2', '3'];
964
964
  const handleFrameworkEventAngular = (component, event, modelValue = 'value') => {
965
965
  // Change event to work with reactive and template driven forms
966
966
  component.propagateChange(event.target[modelValue]);
967
- component.writeValue(event.target[modelValue]);
967
+ // Skip writeValue for user-initiated change events on signal-based properties
968
+ // to prevent double event firing. The propagateChange call above is sufficient
969
+ // for notifying Angular forms of the change.
970
+ // For signal-based properties like 'checked', the component's signal will be
971
+ // updated through the normal Angular change detection cycle.
972
+ const isSignalBasedProperty = modelValue === 'checked' || modelValue === 'disabled';
973
+ if (!isSignalBasedProperty) {
974
+ component.writeValue(event.target[modelValue]);
975
+ }
968
976
  };
969
977
  const handleFrameworkEventVue = (emit, event, modelValue = 'value') => {
970
978
  // TODO: Replace this with the solution out of https://github.com/BuilderIO/mitosis/issues/833 after this has been "solved"