From fc9eef90fb822d86edebc5cdb5fe4c24ba75f407 Mon Sep 17 00:00:00 2001 From: Cody Jackson Date: Wed, 10 Feb 2021 14:56:12 -0700 Subject: [PATCH] Fixing two issues that showed up in pod scheduling - The first issue was caused by the introductions of ArrayListGrouped and not updating all references appropriately - The other was caused by LabeledSelect calling the @input handler twice for every selection. The handler was toggling which caused the value to always reset. It looks like the reason labeled select was calling the handler twice was because of having both v-bind="$attrs" and @input="...". So i removed @input and verified that LabeledSelect still works for both v-model and value/@input. rancher/dashboard#2211 --- components/form/LabeledSelect.vue | 1 - components/form/PodAffinity.vue | 13 ++++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/components/form/LabeledSelect.vue b/components/form/LabeledSelect.vue index c46eb74a72..a09239ebd3 100644 --- a/components/form/LabeledSelect.vue +++ b/components/form/LabeledSelect.vue @@ -249,7 +249,6 @@ export default { :searchable="isSearchable" :selectable="selectable" :value="value != null ? value : ''" - @input="(e) => $emit('input', e)" v-on="$listeners" @search:blur="onBlur" @search:focus="onFocus" diff --git a/components/form/PodAffinity.vue b/components/form/PodAffinity.vue index c221fa760b..3a156bca38 100644 --- a/components/form/PodAffinity.vue +++ b/components/form/PodAffinity.vue @@ -1,6 +1,6 @@