Skip to content

Commit

Permalink
fix: #21
Browse files Browse the repository at this point in the history
  • Loading branch information
cloydlau committed Nov 3, 2022
1 parent 8191b2c commit 74bb8e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ export default defineComponent({
const preventOnChange = ref(false)

const initialMode = conclude([props.mode, globalProps.mode])
const initialValue = conclude([props[modelValueProp], globalProps[modelValueProp]])
const initialValue = conclude([props[modelValueProp], globalProps[modelValueProp]], {
camelCase: false,
})
const initialBoolAttrs = Object.fromEntries(Array.from(boolAttrs, boolAttr =>
[boolAttr, conclude([props[boolAttr], globalProps[boolAttr]])])
.filter(([, v]) => v !== undefined))
Expand Down

0 comments on commit 74bb8e1

Please sign in to comment.