Merge pull request #57 from Safelite/defect/Digital/SSR-138
Fix Invalid prop warning for modelValue in base-input-button component
This commit is contained in:
commit
b024112cac
1 changed files with 9 additions and 2 deletions
|
|
@ -4,8 +4,15 @@ export const inputButtonProps = {
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
modelValue: {
|
modelValue: {
|
||||||
type: [Array, String, Number],
|
|
||||||
required: true,
|
required: true,
|
||||||
|
validation: function(prop) {
|
||||||
|
return (
|
||||||
|
prop === null
|
||||||
|
|| Array.isArray(prop)
|
||||||
|
|| typeof prop === 'string'
|
||||||
|
|| (typeof prop === 'number' && !Number.isNaN(prop))
|
||||||
|
)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
isMultiSelect: Boolean,
|
isMultiSelect: Boolean,
|
||||||
groupName: {
|
groupName: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue