Allow to override MultiChoice default value
This commit is contained in:
parent
7fd905741a
commit
ce39afc64a
1 changed files with 1 additions and 1 deletions
|
@ -733,7 +733,7 @@ L.FormBuilder.MultiChoice = L.FormBuilder.Element.extend({
|
|||
fetch: function () {
|
||||
let value = (this.backup = this.toHTML())
|
||||
if (!this.container.querySelector(`input[type="radio"][value="${value}"]`))
|
||||
value = this.default
|
||||
value = typeof(this.options.default) !== 'undefined' ? this.options.default : this.default
|
||||
this.container.querySelector(`input[type="radio"][value="${value}"]`).checked = true
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue