primeng icon indicating copy to clipboard operation
primeng copied to clipboard

autocomplete does not close on second dropdown click.

Open gustavomerini opened this issue 8 years ago • 23 comments

I'm submitting a ... (check one with "x")

[ ] bug report => Search github for a similar issue or PR before submitting
[ X] 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

Expected behavior

i would expect that the first click on the dropdown would display the suggestions and if the user clicks the dropdown again, it would close the dropdown, maybe it should be an option within the component that would allow me to set enable or disable, would help me a lot for customization. In my opnion it should work just like the dropdown component: https://www.primefaces.org/primeng/#/dropdown, it already works this way.

Minimal reproduction of the problem with instructions

https://www.primefaces.org/primeng/#/autocomplete here there is an autocomplete with the dropdown, Just click one time on the dropdown, than click another time to check out that it does not close on the second click

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

My client reported that he would like that the second click on the dropdown would close the search, like it already happens when you click outside the component.

Please tell us about your environment:

vscode

  • Angular version: 6.X
  • PrimeNG version: 6.X
  • 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]

  • Node (for AoT issues): node --version = 8.12

gustavomerini avatar Nov 06 '18 15:11 gustavomerini

No plans to change the current behavior, if there is more demand we'll reconsider making this an option.

cagataycivici avatar Nov 26 '18 12:11 cagataycivici

@cagataycivici I need it too. Having this option would be awesome from an usability perspective.

tiagodws avatar Nov 27 '18 18:11 tiagodws

@cagataycivici pretty please?

ericcastoldi avatar Nov 27 '18 18:11 ericcastoldi

+1

csvinhal avatar Nov 27 '18 18:11 csvinhal

+1

elizeugba avatar Nov 27 '18 19:11 elizeugba

@cagataycivici that's I'm talking about! :)

luankevinferreira avatar Nov 28 '18 09:11 luankevinferreira

+1

falexandre avatar Nov 28 '18 11:11 falexandre

+1

francovegini avatar Nov 28 '18 11:11 francovegini

+1

sidneibiz avatar Nov 28 '18 11:11 sidneibiz

+1

matheus-rdo avatar Nov 28 '18 12:11 matheus-rdo

@cagataycivici I need this too, please reconsider

ghost avatar Nov 29 '18 17:11 ghost

+1

dhuebes avatar Nov 30 '18 11:11 dhuebes

+1

LeonardoHabitzreuter avatar Nov 30 '18 11:11 LeonardoHabitzreuter

+1

WagnerReetz avatar Nov 30 '18 11:11 WagnerReetz

+1

leoreichert avatar Nov 30 '18 11:11 leoreichert

+1

jjaraujo avatar Nov 30 '18 11:11 jjaraujo

+1

elitonds avatar Nov 30 '18 11:11 elitonds

+1

jlwollinger-zz avatar Nov 30 '18 12:11 jlwollinger-zz

+1

viniciuskr avatar Nov 30 '18 15:11 viniciuskr

+1

wallacetm avatar Nov 30 '18 16:11 wallacetm