File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @compai/css-gui ' : patch
3
+ ---
4
+
5
+ Make sure default value is passed to base schema
Original file line number Diff line number Diff line change @@ -119,18 +119,17 @@ function normalizeSchema(propertyData: PropertyData): DataTypeSchema<any> {
119
119
stringify : ( value ) => String ( value ) ,
120
120
}
121
121
} else {
122
- const { defaultValue, ...basePropertyData } = propertyData
123
122
// TODO: Figure out how to make this use Ranges rather than UnitRanges
124
123
// so there's proper support for `range: 'nonnegative'`
125
124
// @ts -ignore
126
- let schema = primitiveMap [ input ] ( basePropertyData ) as any
125
+ let schema = primitiveMap [ input ] ( propertyData ) as any
127
126
return joinSchemas (
128
127
compact ( [
129
128
schema ,
130
129
keywords && keyword ( keywords ) ,
131
130
themeProperty && themeSchema ( themeProperty ) ,
132
131
] ) ,
133
- { defaultValue }
132
+ { defaultValue : propertyData . defaultValue }
134
133
)
135
134
}
136
135
}
You can’t perform that action at this time.
0 commit comments