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

Picklist: Javascript error with fast selection #4101

Closed
appldo opened this issue Oct 1, 2018 · 0 comments
Closed

Picklist: Javascript error with fast selection #4101

appldo opened this issue Oct 1, 2018 · 0 comments
Labels
6.2.11 🐞 defect Bug...Something isn't working
Milestone

Comments

@appldo
Copy link

appldo commented Oct 1, 2018

1) Environment

  • PrimeFaces version: 6.2.9
    Version 6.1.x worked

  • Affected browsers:
    Chrome/Firefox

2) Expected behavior

No Javascript errors
...

3) Actual behavior

When quickly selecting items in Picklist (e.g. with Selenium or manually by quickly selecting with 'SPACE/CLICK/SPACE/CLICK/SPACE') a javascript exception occurs:

core.js.xhtml?ln=primefaces&v=6.2.9:480 Uncaught TypeError: Cannot read property 'length' of null
at Object.scrollInView (core.js.xhtml?ln=primefaces&v=6.2.9:480)
at components.js.xhtml?ln=primefaces&v=6.2.9:16832
scrollInView @ core.js.xhtml?ln=primefaces&v=6.2.9:480
(anonymous) @ components.js.xhtml?ln=primefaces&v=6.2.9:16832
setTimeout (async)
(anonymous) @ components.js.xhtml?ln=primefaces&v=6.2.9:16831
dispatch @ jquery.js.xhtml?ln=primefaces&v=6.2.9:3
q.handle @ jquery.js.xhtml?ln=primefaces&v=6.2.9:3
trigger @ jquery.js.xhtml?ln=primefaces&v=6.2.9:4
simulate @ jquery.js.xhtml?ln=primefaces&v=6.2.9:4
c @ jquery.js.xhtml?ln=primefaces&v=6.2.9:4

4) Steps to reproduce

You can test this in the showcase:

https://www.primefaces.org/showcase/ui/data/pickList.xhtml

5) Sample XHTML

6) Sample bean

@tandraschko tandraschko added the 🐞 defect Bug...Something isn't working label Oct 1, 2018
@tandraschko tandraschko added this to the 6.3 milestone Oct 1, 2018
tandraschko added a commit that referenced this issue Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.2.11 🐞 defect Bug...Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants