nussknacker
nussknacker copied to clipboard
Support for select box with null option
You can't set blank/null value on optional parameter with fixed values.
See "properties" > "fixedValueOptionalProperty " https://staging.nussknacker.io/visualization/rgl?businessView=false
Seen on current staging, chrome 80.
I've realized it can be worked around with additional explicit "blank" value.
editor values mandatory effect
"a", "b" no can't set blank/null
"blank", "a", "b" no ok
"blank", "a", "b" yes validation error
I'm leaving it up to you, it seems counter intuitive, but it's a minor issue.
Probably it would be easier to remove the concept of optional value from fixed values params and explicitly add blank if neeed.
Just as you described we support null option by adding
val nullTopicOption: FixedExpressionValue = FixedExpressionValue("", "")