Skip to content

Commit

Permalink
FIx #935
Browse files Browse the repository at this point in the history
  • Loading branch information
mgubaidullin committed Oct 11, 2023
1 parent 6682daf commit 4e86c68
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 27 deletions.
29 changes: 5 additions & 24 deletions karavan-designer/public/example/demo.camel.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
- route:
id: route-a7ac
from:
uri: sql
id: from-82ca
- route:
id: route-1a95
from:
Expand Down Expand Up @@ -63,27 +68,3 @@
- log:
message: ${body}
id: log-1919
- rest:
id: rest-54e3
- rest:
id: rest-b9dd
- rest:
id: rest-b391
- rest:
id: rest-e066
- rest:
id: rest-5daa
- rest:
id: rest-b193
- rest:
id: rest-06e5
- rest:
id: rest-268d
- beans:
- {}
- {}
- {}
- {}
- {}
- {}
- {}
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,15 @@ export function ComponentParameterField(props: Props) {
return (
<Select
id={id} name={id}
variant={SelectVariant.single}
variant={SelectVariant.typeahead}
aria-label={property.name}
onToggle={(_event, isExpanded) => {
openSelect(property.name, isExpanded)
}}
onSelect={(e, value, isPlaceholder) => parametersChanged(property.name, (!isPlaceholder ? value : undefined))}
selections={value}
isCreatable={true}
createText=""
isOpen={isSelectOpen(property.name)}
aria-labelledby={property.name}
direction={SelectDirection.down}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,15 @@ export function ComponentParameterField(props: Props) {
return (
<Select
id={id} name={id}
variant={SelectVariant.single}
variant={SelectVariant.typeahead}
aria-label={property.name}
onToggle={(_event, isExpanded) => {
openSelect(property.name, isExpanded)
}}
onSelect={(e, value, isPlaceholder) => parametersChanged(property.name, (!isPlaceholder ? value : undefined))}
selections={value}
isCreatable={true}
createText=""
isOpen={isSelectOpen(property.name)}
aria-labelledby={property.name}
direction={SelectDirection.down}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,15 @@ export function ComponentParameterField(props: Props) {
return (
<Select
id={id} name={id}
variant={SelectVariant.single}
variant={SelectVariant.typeahead}
aria-label={property.name}
onToggle={(_event, isExpanded) => {
openSelect(property.name, isExpanded)
}}
onSelect={(e, value, isPlaceholder) => parametersChanged(property.name, (!isPlaceholder ? value : undefined))}
selections={value}
isCreatable={true}
createText=""
isOpen={isSelectOpen(property.name)}
aria-labelledby={property.name}
direction={SelectDirection.down}
Expand Down

0 comments on commit 4e86c68

Please sign in to comment.