Make sure you're on the latest stable or beta build
Is this a bug in companion itself or a module?
Is there an existing issue for this?
Describe the bug
When toggling to expression mode for a dropdown with a string value, the id value of the current selection becomes the expression value. However because that value becomes value and not 'value' actions or feedbacks that are expecting specific key values break until it is edited to include the ''. At that point toggling the option out of expression mode returns an error for a value not found in the dropdown list. I think this could be cleaner and auto handled by companion.
Steps To Reproduce
- Feedback with a dropdown selection:

2. Toggle to expression mode, now the feedback can't return a value because it is looking for a known key:

3. Edit the expression to wrap the value in ' ':
- Now toggle out of expression mode, and the value can't be found in the drop down contents:
Expected Behavior
I think this makes for a clumsy experience when moving between non-expression and expression mode, and ideally companion would handle this behind the scenes better.
Environment (please complete the following information)
- Companion Version: 4.3.0+9093
- OS: Win 11
- Browser: Firefox
Additional context
Module using:
- Companion Module Base: 2.0.3
For reference the feedback callback from the above:
callback: (feedback) => {
sub('versions', feedback.id, self)
if (!self.api) return null
switch (feedback.options.field) {
case 'major':
return self.api.versions.major
case 'minor':
return self.api.versions.minor
case 'muProcessor':
return self.api.versions.muProcessor
case 'type':
return MatVersionType[self.api.versions.type]
default: {
const _exhaustiveCheck: never = feedback.options.field
return _exhaustiveCheck
}
}
},
Make sure you're on the latest stable or beta build
Is this a bug in companion itself or a module?
Is there an existing issue for this?
Describe the bug
When toggling to expression mode for a dropdown with a string value, the
idvalue of the current selection becomes the expression value. However because that value becomesvalueand not'value'actions or feedbacks that are expecting specific key values break until it is edited to include the ''. At that point toggling the option out of expression mode returns an error for a value not found in the dropdown list. I think this could be cleaner and auto handled by companion.Steps To Reproduce
Expected Behavior
I think this makes for a clumsy experience when moving between non-expression and expression mode, and ideally companion would handle this behind the scenes better.
Environment (please complete the following information)
Additional context
Module using:
For reference the feedback callback from the above: