Skip to content

Commit 4f2bd20

Browse files
committed
fix: option re-render onInput
1 parent 06768c0 commit 4f2bd20

File tree

3 files changed

+0
-11
lines changed

3 files changed

+0
-11
lines changed

src/js/components/fields/edit-panel-item.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ const INPUT_TYPE_ACTION = {
122122
string: (dataKey, field) => ({
123123
input: ({ target: { value } }) => {
124124
field.set(dataKey, value)
125-
field.updatePreview()
126125
},
127126
}),
128127
number: (dataKey, field) => ({

src/js/components/fields/edit-panel.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,6 @@ export default class EditPanel {
2424
this.field = field
2525

2626
this.panelConfig = this.getPanelConfig(this.data)
27-
28-
if (panelName === 'options') {
29-
field.addSetCallback(`^${panelName}`, () => {
30-
this.data = field.get('options')
31-
const { config, ...panelConfig } = this.getPanelConfig(this.data)
32-
const editPanel = document.getElementById(this.panelConfig.id)
33-
editPanel.replaceWith(dom.create(panelConfig))
34-
})
35-
}
3627
}
3728

3829
getPanelConfig(data) {

src/js/components/fields/field.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import startCase from 'lodash/startCase'
33
import throttle from 'lodash/throttle'
44
import dom from '../../common/dom'
55
import Panels from '../panels'
6-
// import { indexOfNode } from '../../common/helpers'
76
import { clone, unique } from '../../common/utils'
87
import EditPanel from './edit-panel'
98
import Component from '../component'

0 commit comments

Comments
 (0)