Skip to content

vie-autosuggest props incorrect #153

Description

@mhimi1

Hi,

The docs show the following example code for vue-autosuggest:

<vue-autosuggest
:suggestions="indicesToSuggestions(indices)"
@selected="onSelect"
:input-props="{
style: 'width: 100%',
onInputChange: refine,
placeholder: 'Search here…',
}"

This does not seem to trigger 'refine'.

@input event does seem to trigger 'refine', as followed:

<ais-autocomplete>
          <template slot-scope="{ currentRefinement, indices, refine }">
            <vue-autosuggest
              :value="currentRefinement"
              :suggestions="indicesToSuggestions(indices)"
              @selected="onSelect"
              @input="refine"
              :input-props="inputProps"
            >
              <template slot-scope="{ suggestion }">
                <ais-highlight
                  :hit="suggestion.item"
                  attribute="name"
                  v-if="suggestion.item.name"
                />
                <strong>$ {{ suggestion.item.price }}</strong>
                <img :src="suggestion.item.image" />
              </template>
            </vue-autosuggest>
          </template>
        </ais-autocomplete>

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions