primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Dropdowns, multiselect/autoselect close needs two clicks - chrome

Open Ketec opened this issue 9 years ago • 7 comments

[ x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior In Chrome, dropdowns, multiselect/autoselect need two clicks to close (change detection issue?) Also in the https://www.primefaces.org/primeng/#/dropdown they won't close at all.

Expected behavior Takes a single outside click to close.

Ketec avatar Sep 01 '17 13:09 Ketec

I have the same issue. Using "primeng": "^4.2.1"

wautersj avatar Sep 26 '17 15:09 wautersj

It listens to the document click - so i assume that is where the problem comes from. Why not focusout or similar? This would cover any action that causes focus to be lost (window resize included). Global click listener on document is problematic because often preventpropagation might be used in various places as well.

Ketec avatar Sep 27 '17 05:09 Ketec

Same issue here. 4.2.2

reinpeter avatar Oct 17 '17 13:10 reinpeter

This is related to or duplicate of: https://github.com/primefaces/primeng/issues/4162

reinpeter avatar Oct 19 '17 09:10 reinpeter

@reinpeter the issue linked does not mention the need for two clicks outside to close it. So it is not the same bug.

Ketec avatar Oct 19 '17 14:10 Ketec

@Ketec i think it does. In that ticket (title) it states that after selecting an item (by first click), you need to click it again or click outside of control. Both scenario's it requires two clicks to close the dialog. It does not mention the scenario of not selecting an item and clicking twice outside of control, but it is similar problem

reinpeter avatar Oct 19 '17 14:10 reinpeter

Tracked at #4162 for 4.2.3

cagataycivici avatar Oct 20 '17 08:10 cagataycivici