vue-simple-suggest icon indicating copy to clipboard operation
vue-simple-suggest copied to clipboard

Vue 3 support

Open parag-agarwal opened this issue 3 years ago • 8 comments

I'm submitting a ...

  • [ ] bug report
  • [x] feature request
  • [ ] support request

What is the current behavior?

  • Cannot use this library in a Vue 3 app

How are you importing Vue-simple-suggest?

  • [ ] ESNext (original code, single-file .vue component, css included) (import VueSimpleSuggest from 'vue-simple-suggest/lib')
  • [x] ES6 (import VueSimpleSuggest from 'vue-simple-suggest')
  • [ ] ES7 and above (import VueSimpleSuggest from 'vue-simple-suggest/dist/es7')
  • [ ] Bundled version (import VueSimpleSuggest from 'vue-simple-suggest')
  • [ ] CommonJS (const VueSimpleSuggest = require('vue-simple-suggest'))
  • [ ] UMD Component (<script type="text/javascript" src="https://unpkg.com/vue-simple-suggest"></script>)

What is the motivation / use case for changing the behavior?

For using this project in Vue 3 based applications

Please tell us about your environment:

  • Vue.js Version: 3.0.11
  • Vue-simple-suggest version: 1.7.0
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Language: [all | TypeScript X.X | ES6/7 | ES5 | Dart]
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

parag-agarwal avatar May 12 '21 12:05 parag-agarwal

@kaskar2008, @parag-agarwal - Is there any errors to show why this doesn't work with Vue 3? Just out of curiosity..

Thanks :)

gkweb avatar Jul 28 '21 06:07 gkweb

I've started some work to port to Vue 3, but it's not functional yet. Linking here in case it is helpful.

https://github.com/radusuciu/vue-simple-suggest/commit/4ce15b84eef5ca5ec2226266a1bdc8a20626e173

radusuciu avatar Jul 28 '21 15:07 radusuciu

Hi Guys! Any updates on this?

vencho-mdp avatar Feb 16 '22 19:02 vencho-mdp

Hello, any news about this feature?

vaban-ru avatar Aug 08 '22 06:08 vaban-ru

Hey all, I ended up writing my own custom input for this purpose which only supports those features that are needed in my application as it seems that most autocomplete libraries outside of the big UI frameworks have limited support lifespans.

radusuciu avatar Aug 08 '22 17:08 radusuciu

Hi everybody, my pull request https://github.com/KazanExpress/vue-simple-suggest/pull/587 brings initial Vue 3 support, hope it will be useful ;)

tbl0605 avatar Aug 28 '23 08:08 tbl0605

Hello, recently company I work for decided to upgrade to Vue 3 and because we need this as npm package I have taken the liberty to use changes made by @tbl0605 and replace Webpack with Vite (+ removed polyfills that we do not use, and made changes to formatting based on our standards) and publish it to npm.

Here it is if anybody still needs it https://www.npmjs.com/package/@vojtechlanka/vue-simple-suggest.

VojtechLanka avatar Feb 07 '24 17:02 VojtechLanka

Hi @VojtechLanka, Thank you, I'll try it :)

tbl0605 avatar Feb 08 '24 11:02 tbl0605