We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ee65f3d + 9f57a3e commit 31c5389Copy full SHA for 31c5389
src/component/Property/PropertyBool.jsx
@@ -9,10 +9,13 @@ class PropertyBool extends React.Component {
9
10
handleChange = async ({value})=>{
11
const {handle, name, path} = this.props
12
- if (handle && handle.change) return handle.change({name, path, value})
+ let val = value
13
+ if (value === 'true') val = true
14
+ if (value === 'false') val = false
15
+ if (handle && handle.change) return handle.change({name, path, value: val})
16
await modelStyle.actions.setIn({
17
path,
- value,
18
+ value: val,
19
})
20
}
21
0 commit comments