Skip to content

[Bug]: vueform/multiselect infinite not working with _forms-multiselect #254

Description

@nearlyheadlessarvie

Demo URL

No response

What happened?

vueform/multiselect infinite not working with _forms-multiselect. The infinite loader keeps on loading and wont scroll pass the initial limit.

image

<VField v-slot="{ id }" class="is-icon-select">
  <VControl>
    <Multiselect
      :attrs="{ id }"
      v-model="value"
      mode="multiple"
      placeholder="Choose your stack"
      :close-on-select="false"
      :filter-results="false"
      :min-chars="0"
      :resolve-on-load="false"
      :infinite="true"
      :limit="10"
      :clear-on-search="true"
      :delay="0"
      :hide-selected="false"
      :searchable="true"
      :options="
        async (query) => {
          return await fetchLanguages(query);
        }
      "
      @open="
        (select$) => {
          if (select$.noOptions) {
            select$.resolveOptions();
          }
        }
      "
    />
  </VControl>
</VField>

Works fine when I comment out Multiselect base styles in _forms-multiselect.scss

Reproduction steps

Create Multiselect with infinite and async options.

Relevant log output

No response

What browsers are you seeing the problem on?

No response

What is your operating system?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions