material icon indicating copy to clipboard operation
material copied to clipboard

autocomplete: tap events outside of dropdown do not dismiss panel

Open chriswait opened this issue 11 years ago • 14 comments

Demo:

Left is Chrome (not emulating mobile) - dismisses as expected Right is iOS simulator (iPad2 / iOS 9.1) - does not dismiss on taps outside autocomplete

Codepen: http://codepen.io/chriswait91/pen/JYepbj/ (using Angular Material v1.0.0-rc3) Also reproducible on Autocomplete demo page: https://material.angularjs.org/HEAD/demo/autocomplete

Reproduction Steps:

  1. Tap on the autocomplete input (the system displays the list of matches)
  2. Tap outside the autocomplete area i.e outside the input and the list of matches

Expected Behaviour:

When these steps are followed in desktop browsers, clicking outside the autocomplete area will dismiss the autocomplete. This is presumed to be the expected behaviour on mobile devices.

Actual Behaviour:

The list of matches is not dismissed.

Reproduced on:

  • iPhone 6 (iOS 9.1, Safari)
  • iOS Simulator (iOS 9.1, iPad 2, Safari)
  • Android Nexus 7 (Chrome)
  • Google Chrome, emulating mobile

chriswait avatar Nov 11 '15 03:11 chriswait

+1

gpothier avatar Nov 13 '15 05:11 gpothier

+1 After upgrading to v1.0.0-rc7, I can at least dismiss the the results by tapping on another form element.

Edit: Never mind, I'm a crazy person. Still experiencing the issue.

smithdalec avatar Dec 09 '15 21:12 smithdalec

+1

jsmylnycky avatar Jan 14 '16 12:01 jsmylnycky

+1

sroyqci avatar Jan 14 '16 19:01 sroyqci

I also met this issue. Generally, elements does not lose their focus

gfg-trung-tran-vn avatar Jan 18 '16 12:01 gfg-trung-tran-vn

+1

fernandogomesdf avatar Feb 04 '16 03:02 fernandogomesdf

+1

korrix avatar Mar 31 '16 09:03 korrix

+1. Why is this deprecated?

wgilpin avatar Sep 12 '16 18:09 wgilpin

Any news about this one...? Why was this deprecated? The issue still exists on Safari...

orenagiv avatar Jun 28 '17 12:06 orenagiv

+1, Anyone got Solution for this issue, I am also facing same problem here...

RajappaR avatar Aug 22 '17 13:08 RajappaR

@ThomasBurleson why did u closed this issue... still this issue is not resloved....

RajappaR avatar Aug 22 '17 13:08 RajappaR

+1 This should not be closed. Still an issue on the demo page on an iPhoneX: https://material.angularjs.org/HEAD/demo/autocomplete

jason-covington avatar Jan 16 '19 20:01 jason-covington

This is being tracked in https://github.com/angular/material/issues/9581. Another duplicate issue is https://github.com/angular/material/issues/8996.

Splaktar avatar Jan 25 '19 22:01 Splaktar

Btw, disabling click hijacking as described here is the recommended solution for now.

Splaktar avatar Jan 25 '19 22:01 Splaktar