Skip to content

Commit

Permalink
Work for #7025: fix dropdown and tagbox warnings (#7052)
Browse files Browse the repository at this point in the history
  • Loading branch information
dk981234 committed Sep 29, 2023
1 parent 29cf60c commit ef7cef6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
11 changes: 8 additions & 3 deletions packages/survey-vue3-ui/src/components/dropdown/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

<div :class="question.cssClasses.controlValue">
<survey-string
v-if="question.showSelectedItemLocText"
:locString="question.selectedItemLocText"
v-if="showSelectedItemLocText"
:locString="selectedItemLocText"
/>
<div
v-if="model.showHintString"
Expand Down Expand Up @@ -105,7 +105,7 @@
</div>
<div
:class="question.cssClasses.chevronButton"
v-on:pointerdown="chevronPointerDown"
v-on:pointerdown="chevronPointerDown"
v-if="question.cssClasses.chevronButtonIconId"
>
<sv-svg-icon
Expand Down Expand Up @@ -166,6 +166,11 @@ const inputChange = (event: any) => {
model.value.inputStringRendered = event.target.value;
};
const showSelectedItemLocText = computed(
() => props.question.showSelectedItemLocText
);
const selectedItemLocText = computed(() => props.question.selectedItemLocText);
useBase(() => model.value);
onUpdated(updateInputDomElement);
Expand Down
5 changes: 3 additions & 2 deletions packages/survey-vue3-ui/src/components/tagbox/Tagbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
>
<div :class="question.cssClasses.controlValue">
<sv-tagbox-item
v-for="(item, index) in question.selectedChoices"
v-for="(item, index) in selectedChoices"
:item="item"
:question="question"
:key="'item' + index"
Expand Down Expand Up @@ -60,7 +60,7 @@
</div>
<div
:class="question.cssClasses.chevronButton"
v-on:pointerdown="chevronPointerDown"
v-on:pointerdown="chevronPointerDown"
v-if="question.cssClasses.chevronButtonIconId"
>
<sv-svg-icon
Expand Down Expand Up @@ -101,6 +101,7 @@ const keyhandler = (event: any) => {
const blur = (event: any) => {
model.value?.onBlur(event);
};
const selectedChoices = computed(() => props.question.selectedChoices);
useBase(() => model.value);
</script>

0 comments on commit ef7cef6

Please sign in to comment.