Skip to content

Commit

Permalink
feat(runtime): allow the select to be used as condition for other fields
Browse files Browse the repository at this point in the history
  • Loading branch information
danielo515 committed Jul 5, 2024
1 parent 1ffe488 commit 0d23e0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/input/dependentFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ export function availableConditionsForInput(input: FieldDefinition["input"]): Co
case "time":
case "datetime":
return ["isSet"];
// Select values are always set, so that's why we don't have an "isSet" condition
case "select":
return ["startsWith", "endsWith", "isExactly", "contains"];
case "multiselect":
case "tag":
case "dataview":
Expand Down

0 comments on commit 0d23e0b

Please sign in to comment.