jeudi 27 mars 2014

Selectfield: Fires focus event twice on phone, once on tablet and desktop

Fiddle

http://ift.tt/1fmGUZX




Touch version tested:

  • Touch 2.3.1


Browser versions tested against:

  • Chrome 33 on desktop (OK)

  • Chrome 33 on desktop Emulate Nexus 4 (Fail)

  • Chrome 33 on Samsung Galaxy SII on Android 4.3.1 (Fail)

  • Safari on iPad 2 on iOS 7.0.4 (OK)


DOCTYPE tested against:

  • HTML5


Description:

  • Tapping a selectfield fires focus event twice on phones, once on tablets. Introduces problems since I do things on focus event.


Steps to reproduce the problem:

  • Click the selectfield. Each focus event writes 'focus' to the top log container.


The result that was expected:

  • "focus" should appear once


The result that occurs instead:

  • "focus" appears twice on phones and Chrome emulating a phone.

  • "focus" appears once on tablets and desktop Chrome without emulation.






Aucun commentaire:

Enregistrer un commentaire