Skip to content

Commit

Permalink
fix: multiple attribute error
Browse files Browse the repository at this point in the history
resolves #205
  • Loading branch information
kevinchappell committed May 27, 2019
1 parent e59f025 commit 05d4401
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/js/components/fields/edit-panel-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,11 +418,6 @@ export default class EditPanelItem {
const valType = dom.childType(val) || 'string'

const inputTypeConfig = Object.assign({}, { config: {}, attrs: {} }, ITEM_INPUT_TYPE_MAP[valType](key, val))
const { attrs: fieldAttrs = {} } = this.field.data
const { multiple } = fieldAttrs
if (multiple) {
inputConfigBase.attrs.type = 'checkbox'
}
const dataKey = this.itemKey.replace(/.\d+$/, index => `${index}.${key}`)
const labelKey = dataKey
.split('.')
Expand Down

0 comments on commit 05d4401

Please sign in to comment.