GithubHelp home page GithubHelp logo

Comments (6)

Raiondesu avatar Raiondesu commented on May 22, 2024

@Geminii, hmm, that's pretty interesting.
I think that the binding is not preserved after clearing the text. But I doubt the problem is that simple.
It needs deeper investigation.

For now, could you also try resetting the "text" property in Vue-Simple-Suggest and binding it again via "this.$set"?

from vue-simple-suggest.

Geminii avatar Geminii commented on May 22, 2024

Hi @Raiondesu
I think too.

I try to do it like this :

this.text = "";
this.$set(this.$data, 'text', ''); // I create a component and use Vue-Simple-Suggest on it.

But not working. I try to reset "selected" property too and not working :(
Thanks for your help :)

from vue-simple-suggest.

Geminii avatar Geminii commented on May 22, 2024

Hi @Raiondesu,
Do you reproduced this bug ?
We need to put it in production soon, and want absolutly fix this before :)

Thanks a lot for your help.
Regards,

from vue-simple-suggest.

Raiondesu avatar Raiondesu commented on May 22, 2024

After further investigation, this turned out to be a bug.
@Geminii, sorry for being silent for so long. Gonna look into this soon.

from vue-simple-suggest.

kaskar2008 avatar kaskar2008 commented on May 22, 2024

@Geminii Your solution was pretty close to an end :)
In the $nextTick you can just call a clearSuggestions method that is described in the docs under Ref Methods section. Also to provide a blur event you can use $refs for that thing. For example:

this.$refs.suggestComponent.$el.querySelector('input').blur()

Again, sorry for being silent for so long :)
Please, close this issue if it helps.

from vue-simple-suggest.

Raiondesu avatar Raiondesu commented on May 22, 2024

Closing the issue for maintaining purposes.
@Geminii, reopen if the problem persists, please.

from vue-simple-suggest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.