angular-click-outside icon indicating copy to clipboard operation
angular-click-outside copied to clipboard

Click inside dropdown menu

Open iulianmids opened this issue 9 years ago • 8 comments

Hi, When I click inside the dropdown menu that has the click-outside directive, it closes the menu, and also, any links that are in that dropdown don't work (neither with href or ui-sref). Actually the click I execute on an inside the dropdown, gets executed on whatever is under that menu.... strange behaviour

Thanks

iulianmids avatar Feb 27 '16 18:02 iulianmids

@iulianmids can I confirm which version you are currently using please?

IamAdamJowett avatar Feb 27 '16 22:02 IamAdamJowett

2.6.2

thanks

iulianmids avatar Feb 28 '16 12:02 iulianmids

@iulianmids thanks, are we talking about select boxes here or, dropdowns made from lists as per the example in the /example folder? I'll look into it.

IamAdamJowett avatar Feb 28 '16 22:02 IamAdamJowett

Hi, I've created a custom dropdown menu from an

iulianmids avatar Feb 29 '16 08:02 iulianmids

@iulianmids looks like your reply was cut off, let me know and I'll do what I can to see if it is still an issue.

IamAdamJowett avatar Mar 10 '16 04:03 IamAdamJowett

It's fixed now? I have the same problem.

I'm using next code:

<div ng-show="showDropdown" class="profile-menu-dropdown-menu"
                     click-outside="toggleThis('showDropdown', false)">
                    <ul>
                        <li>
                             <button ui-sref="profile">Cabinet</button>
                        </li>
                        <li>
                            <button>Cashback</button>
                        </li>
                        <li>
                            <button ng-click="logout()">Logout</button>
                        </li>
                    </ul>
</div>

On desktop it works like a charm, but today i've tested my app on iphone 6 and it doesn't work. I've tried to replace button ui-sref to a href but unfortunately it doesnt help.

IuriiKryventsov avatar Sep 27 '16 14:09 IuriiKryventsov

I'll grab an iPhone 6 and give this a test to see what is going on, nothing springs to mind just yet.

IamAdamJowett avatar Sep 30 '16 12:09 IamAdamJowett

@IamAdamJowett thanks for your answer! I'll wait on good news from you :)

IuriiKryventsov avatar Sep 30 '16 14:09 IuriiKryventsov