diff --git a/shell/components/auth/AllowedPrincipals.vue b/shell/components/auth/AllowedPrincipals.vue index fcdc9781ed..890baa4b1e 100644 --- a/shell/components/auth/AllowedPrincipals.vue +++ b/shell/components/auth/AllowedPrincipals.vue @@ -4,7 +4,7 @@ import ArrayList from '@shell/components/form/ArrayList'; import Principal from '@shell/components/auth/Principal'; import SelectPrincipal from '@shell/components/auth/SelectPrincipal'; import { _EDIT } from '@shell/config/query-params'; -import { addObject } from '@shell/utils/array'; +import uniq from 'lodash/uniq'; export default { components: { @@ -56,7 +56,7 @@ export default { methods: { addPrincipal(id) { - addObject(this.authConfig.allowedPrincipalIds, id); + this.authConfig.allowedPrincipalIds = uniq([...this.authConfig.allowedPrincipalIds, id]); }, } }; diff --git a/shell/components/auth/SelectPrincipal.vue b/shell/components/auth/SelectPrincipal.vue index b76171fa12..27b6c91845 100644 --- a/shell/components/auth/SelectPrincipal.vue +++ b/shell/components/auth/SelectPrincipal.vue @@ -188,7 +188,7 @@ export default { :filterable="false" class="select-principal" :class="{'retain-selection': retainSelection}" - @input="add" + @update:value="add" @search="onSearch" @on-open="resetTooltipContent()" @on-close="setTooltipContent()" diff --git a/shell/components/form/LabeledSelect.vue b/shell/components/form/LabeledSelect.vue index 629c291a58..56cdb593e7 100644 --- a/shell/components/form/LabeledSelect.vue +++ b/shell/components/form/LabeledSelect.vue @@ -13,6 +13,8 @@ import { LABEL_SELECT_NOT_OPTION_KINDS } from '@shell/types/components/labeledSe export default { name: 'LabeledSelect', + inheritAttrs: false, + components: { LabeledTooltip }, mixins: [ CompactInput, @@ -247,17 +249,20 @@ export default {