question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Re-render options after @search-change

See original GitHub issue

On my case, what a I need is to call an Ajax call after the @search-change redefining the options then. But, it seem that setting the options remotely is not permitted.

<template lang="pug">
    treeselect(
        v-model="value"
        :options="options"
        @search-change="searchChange"
    )
</template>

<script>
    export default {
        options: [],
        value: null,
        methods: {
            searchChange () {
                 this.doAjaxRequest().then((body) => {
                     this.options = body.data
                 })
            }
        }
    }
</script>

Doing this way causes the options to be emptied. Am I doing something wrongly or do I have to implement it?

Example: http://sagalbot.github.io/vue-select/docs/Advanced/Ajax.html

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
riophaecommented, Mar 8, 2018

@rinterliche @sandeep240288 Sorry for getting back to you so late! Currently vue-treeselect doesn’t support that feature, but it has been planned though.

0reactions
riophaecommented, Jul 4, 2018

Hi! Async searching is finally landed in v0.0.31. Check out: https://vue-treeselect.js.org/#async-searching

Read more comments on GitHub >

github_iconTop Results From Across the Web

Component doesnt rerender on state change - Stack Overflow
I am managing my state in a custom Hook and after an put request to my backend my state gets updated. This works...
Read more >
[Windows 11/10] Change the Size of display, Display ... - ASUS
Type and search [Change the size of text, apps, and other items] in the ... the following notification after adjusting the display settings, ......
Read more >
Set refresh interval—Portal for ArcGIS
A refresh interval keeps your maps in sync with the latest data while the map is open. For example, you might have a...
Read more >
When does React re-render components? - Felix Gerschau
React DevTools lets you highlight renders under Components -> View Settings -> Highlight updates when components render.
Read more >
ulmb alienware - Paddle Tennis Roma
Diese Option verbessert Alienware 360Hz Gaming Monitor Inch FHD (Full HD 1920 x ... 5" monitor featuring the world's fastest refresh rate of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found