Skip to content

Commit

Permalink
Merge pull request #4066 from nextcloud/fix/select-action
Browse files Browse the repository at this point in the history
  • Loading branch information
Pytal authored May 9, 2023
2 parents a822e2b + 70dd188 commit 25d8311
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/NcActionInput/NcActionInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ For the multiselect component, all events will be passed through. Please see the
:placeholder="text"
:disabled="disabled"
:append-to-body="false"
:class="{ focusable: isFocusable }"
:input-class="{ focusable: isFocusable }"
class="action-input__multi"
v-bind="$attrs"
v-on="$listeners" />
Expand Down
16 changes: 16 additions & 0 deletions src/components/NcSelect/NcSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,11 @@ export default {
v-bind="propsToForward"
v-on="$listeners"
@search="searchString => search = searchString">
<template #search="{ attributes, events }">
<input :class="['vs__search', inputClass]"
v-bind="attributes"
v-on="events">
</template>
<template #open-indicator="{ attributes }">
<ChevronDown v-bind="attributes"
fill-color="var(--vs-controls-color)"
Expand Down Expand Up @@ -655,6 +660,16 @@ export default {
default: null,
},

/**
* Class for the `input`
*
* Necessary for use in NcActionInput
*/
inputClass: {
type: [String, Object],
default: null,
},

/**
* Input element id
*
Expand Down Expand Up @@ -887,6 +902,7 @@ export default {
propsToForward() {
const {
// Props handled by this component
inputClass,
noWrap,
placement,
userSelect,
Expand Down

0 comments on commit 25d8311

Please sign in to comment.