Skip to content

Commit

Permalink
fix: option re-render onInput
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchappell committed Dec 30, 2020
1 parent 06768c0 commit 4f2bd20
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/js/components/fields/edit-panel-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ const INPUT_TYPE_ACTION = {
string: (dataKey, field) => ({
input: ({ target: { value } }) => {
field.set(dataKey, value)
field.updatePreview()
},
}),
number: (dataKey, field) => ({
Expand Down
9 changes: 0 additions & 9 deletions src/js/components/fields/edit-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,6 @@ export default class EditPanel {
this.field = field

this.panelConfig = this.getPanelConfig(this.data)

if (panelName === 'options') {
field.addSetCallback(`^${panelName}`, () => {
this.data = field.get('options')
const { config, ...panelConfig } = this.getPanelConfig(this.data)
const editPanel = document.getElementById(this.panelConfig.id)
editPanel.replaceWith(dom.create(panelConfig))
})
}
}

getPanelConfig(data) {
Expand Down
1 change: 0 additions & 1 deletion src/js/components/fields/field.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import startCase from 'lodash/startCase'
import throttle from 'lodash/throttle'
import dom from '../../common/dom'
import Panels from '../panels'
// import { indexOfNode } from '../../common/helpers'
import { clone, unique } from '../../common/utils'
import EditPanel from './edit-panel'
import Component from '../component'
Expand Down

0 comments on commit 4f2bd20

Please sign in to comment.