Small tweak to JS bindings
This commit is contained in:
parent
41ab3685be
commit
3cf3dd3afa
|
@ -236,11 +236,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const onChangeJSValue = e => {
|
const onChangeJSValue = e => {
|
||||||
|
jsValue = encodeJSBinding(e.detail)
|
||||||
if (!e.detail?.trim()) {
|
if (!e.detail?.trim()) {
|
||||||
// Don't bother saving empty values as JS
|
// Don't bother saving empty values as JS
|
||||||
updateValue("")
|
updateValue(null)
|
||||||
} else {
|
} else {
|
||||||
updateValue(encodeJSBinding(e.detail))
|
updateValue(jsValue)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue