Skip to content

Commit

Permalink
fix: fixing dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
paulushcgcj committed Sep 11, 2023
1 parent 4064891 commit 1273772
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/components/forms/DropdownInputComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ const validateInput = (newValue: any) => {
watch(inputList,() => (selectedValue.value = props.initialValue))
const selectItem = (event:any) => {
selectedValue.value = event?.detail?.item?.getAttribute('data-id')
}
revalidateBus.on(() => validateInput(selectedValue.value))
</script>

Expand All @@ -94,7 +98,7 @@ revalidateBus.on(() => validateInput(selectedValue.value))
:value="selectedValue"
:invalid="error ? true : false"
:invalid-text="error"
@cds-combo-box-selected="(event:any) => selectedValue = event.detail.item.getAttribute('data-id')"
@cds-combo-box-selected="selectItem"
:data-focus="id"
:data-scroll="id">
<cds-combo-box-item
Expand Down

0 comments on commit 1273772

Please sign in to comment.