Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
VILLASframework
VILLASweb
Commits
8934a8e5
Commit
8934a8e5
authored
Nov 21, 2018
by
Steffen Vogel
🎅🏼
Browse files
fix onChange callback for widget parameters control
parent
0226fca3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/dialogs/edit-widget-parameters-control.js
View file @
8934a8e5
...
...
@@ -37,11 +37,20 @@ class EditWidgetParametersControl extends Component {
this
.
setState
({
widget
:
nextProps
.
widget
});
}
handleChange
(
value
)
{
this
.
props
.
handleChange
({
target
:
{
id
:
this
.
props
.
controlId
,
value
:
value
}
});
}
render
()
{
return
(
<
FormGroup
controlId
=
{
this
.
props
.
controlId
}
validationState
=
{
this
.
props
.
validate
?
this
.
props
.
validate
(
this
.
props
.
controlId
)
:
null
}
>
<
ControlLabel
>
{
this
.
props
.
label
}
<
/ControlLabel
>
<
ParametersEditor
content
=
{
this
.
state
.
widget
[
this
.
props
.
controlId
]
||
{}}
onChange
=
{
e
=>
this
.
props
.
handleChange
(
e
)}
/
>
<
ParametersEditor
content
=
{
this
.
state
.
widget
[
this
.
props
.
controlId
]
||
{}}
onChange
=
{
(
v
)
=>
this
.
handleChange
(
v
)}
/
>
<
/FormGroup
>
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment