ngx-select-ex icon indicating copy to clipboard operation
ngx-select-ex copied to clipboard

I have to click twice when click over selected option text, to reopen dropdown

Open gastondisacco opened this issue 7 years ago • 10 comments
trafficstars

Hey! I'm using the select with search disabled and pre-setting the selected value, everything works great, but.. I'm having an issue when clicking over the text inside the selected value, it does not open the dropdown, I have to click again after focus. If I click outside text, over white space inside the selected item, it opens inmediately, only one click required.

Any help? Thanks a lot!

gastondisacco avatar Jun 28 '18 16:06 gastondisacco

im having the same problem ...any quick fix for this ?

michmosh avatar Jul 01 '18 13:07 michmosh

Help me to reproduce the bug. I tried there: https://stackblitz.com/edit/ngx-select-ex-issues-95?file=app/app.component.ts But, looks like all it's ok.

optimistex avatar Jul 01 '18 13:07 optimistex

thanks for the quick reply .

in your example if you change the optionTitle to an html element ( lets say a div element ->

option 1
) and you click on the text itself (one of the options ) you will see you need a second click in order to make it open

michmosh avatar Jul 01 '18 14:07 michmosh

The description is not so clear. Can you fork and make the example? image

optimistex avatar Jul 01 '18 14:07 optimistex

https://stackblitz.com/edit/ngx-select-ex-issues-95-ax48lp?file=app/app.component.ts

check this link - when the drop down is closed and you click on the text itself it needs a seconed click to open , if you click on the blank space it opens fine only clicking the text generates this issue

michmosh avatar Jul 01 '18 14:07 michmosh

Now I see! Thank you. The issue because of the html inside an item. I'll try to figure out something.

optimistex avatar Jul 01 '18 14:07 optimistex

thank you for the quick reply ... i love this component

michmosh avatar Jul 01 '18 14:07 michmosh

Just saw this responses, thanks! Looking forward for a solution :)

gastondisacco avatar Jul 02 '18 12:07 gastondisacco

@optimistex if you have a suggestion for a workaround is more than welcome. Thanks!

gastondisacco avatar Jul 03 '18 14:07 gastondisacco

Any updates on this issue?

It is a great Component with an annoying bug at the moment :)

mhording avatar Aug 16 '18 11:08 mhording