Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete Paste issue #831

Closed
absantanna opened this issue Oct 29, 2015 · 2 comments
Closed

Autocomplete Paste issue #831

absantanna opened this issue Oct 29, 2015 · 2 comments
Labels
6.0.22 6.1.4 🐞 defect Bug...Something isn't working
Milestone

Comments

@absantanna
Copy link

I've a issue with autocomplete component, I'm using primefaces 5.2.14.

When a user paste something with the mouse using right click, in the first time the page is loaded, autocomplete is not showing the results.

Steps to reproduce;

Using Primefaces Showcase page: http://www.primefaces.org/showcase/ui/input/autoComplete.xhtml

In the Simple Input, type an "a", it shows the results, copy the letter, erease it, paste with ctrl-v it shows the results, erease again, copy with mouse right click, it shows the results.

Now press F5, copy the letter with mouse right click, there is no results.

Tested it with Firefox, Chrome and Edge, all lasta versions.

@sudheerj
Copy link
Contributor

In autocomplete.js file the paste event is prevented by below code snippet.

if($this.suppressInput) { e.preventDefault(); return; }
Do we really need this code block?

@tristann9
Copy link

Our application uses PrimeFaces 6.0 on Mojarra-2.0 and we see the same issue there. Using absantanna's steps, I'm also able to reproduce the issue on PrimeFaces Showcase running on PrimeFaces-6.1-SNAPSHOT on Mojarra-2.2.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.0.22 6.1.4 🐞 defect Bug...Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants