Fix typo on multicheckboxinput vue component
This commit is contained in:
parent
d6910e85d4
commit
cef8861ab9
@ -24,10 +24,10 @@ export default {
|
|||||||
|
|
||||||
|
|
||||||
data: function () {
|
data: function () {
|
||||||
const showError = (this.initialErrors && this.initialValue.length > 0) || false
|
const showError = (this.initialErrors && this.initialErrors.length) || false
|
||||||
return {
|
return {
|
||||||
showError: showError,
|
showError: showError,
|
||||||
showValid: !showError && !!this.initialValue,
|
showValid: !showError && this.initialValue.length > 0,
|
||||||
validationError: this.initialErrors.join(' '),
|
validationError: this.initialErrors.join(' '),
|
||||||
otherChecked: this.initialValue.includes("other") ? true : this.otherChecked,
|
otherChecked: this.initialValue.includes("other") ? true : this.otherChecked,
|
||||||
otherText: this.initialOtherValue,
|
otherText: this.initialOtherValue,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user