@db-ux/react-core-components 3.0.6 → 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.
|
@@ -2,7 +2,15 @@
|
|
|
2
2
|
export const handleFrameworkEventAngular = (component, event, modelValue = 'value') => {
|
|
3
3
|
// Change event to work with reactive and template driven forms
|
|
4
4
|
component.propagateChange(event.target[modelValue]);
|
|
5
|
-
|
|
5
|
+
// Skip writeValue for user-initiated change events on signal-based properties
|
|
6
|
+
// to prevent double event firing. The propagateChange call above is sufficient
|
|
7
|
+
// for notifying Angular forms of the change.
|
|
8
|
+
// For signal-based properties like 'checked', the component's signal will be
|
|
9
|
+
// updated through the normal Angular change detection cycle.
|
|
10
|
+
const isSignalBasedProperty = modelValue === 'checked' || modelValue === 'disabled';
|
|
11
|
+
if (!isSignalBasedProperty) {
|
|
12
|
+
component.writeValue(event.target[modelValue]);
|
|
13
|
+
}
|
|
6
14
|
};
|
|
7
15
|
export const handleFrameworkEventVue = (emit, event, modelValue = 'value') => {
|
|
8
16
|
// TODO: Replace this with the solution out of https://github.com/BuilderIO/mitosis/issues/833 after this has been "solved"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@db-ux/react-core-components",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.8-switch-439d623",
|
|
4
4
|
"description": "React components for @db-ux/core-components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"sideEffects": false,
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@db-ux/core-components": "3.0.
|
|
42
|
-
"@db-ux/core-foundations": "3.0.
|
|
41
|
+
"@db-ux/core-components": "3.0.8-switch-439d623",
|
|
42
|
+
"@db-ux/core-foundations": "3.0.8-switch-439d623"
|
|
43
43
|
}
|
|
44
44
|
}
|