Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LabeledSelect: Filter $attrs applied to v-select #12062

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions shell/components/form/LabeledSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,18 @@ export default {
_options() {
// If we're paginated show the page as provided by `paginate`. See label-select-pagination mixin
return this.canPaginate ? this.page : this.options;
}
},

filteredAttrs() {
const {
class: _class,
taggable,
multiple,
...rest
} = this.$attrs;

return rest;
},
},

methods: {
Expand Down Expand Up @@ -285,7 +296,7 @@ export default {
</div>
<v-select
ref="select-input"
v-bind="$attrs"
v-bind="filteredAttrs"
class="inline"
:append-to-body="appendToBody"
:calculate-position="positionDropdown"
Expand Down
Loading