Field placeholders stay visible after typing begins
| Originator: | Rodger.Combs | ||
| Number: | rdar://17947815 | Date Originated: | 07-Aug-2014 |
| Status: | Open | Resolved: | |
| Product: | Bug Reporter | Product Version: | ? |
| Classification: | UI/Usability | Reproducible: | Always |
When using the Bug Reporter web UI to create a new problem, the text fields' placeholders stay visible after the user starts typing in them, and overlap with the user's input. They stay up until the user presses Return, Inspects the text field, or possibly takes a few other actions.
Seems to still be happening. It looks like the problem is due to the "keypress" event being used to detect when to hide the overlay, but the event either not firing properly or being captured earlier for most keys. The code in question:
```
$("#probUpdateBox").live('keypress', function() {
$("#label" + $("#probUpdateBox").attr('id')).addClass('showFalse');
})
```
Binding the same listener to the "input" event fixes the issue for me:
```
$("#probUpdateBox").live('input', function() {
$("#label" + $("#probUpdateBox").attr('id')).addClass('showFalse');
})
```
This still happens for me on Yosemite GM Candidate 3.
Engineering has determined that we cannot reproduce this issue.
Please update your bug report to let us know if this is still an issue for you, and provide any additional information.
Still seeing this happen in Safari Version 8.0.2 (10600.3.5) with extensions disabled on OS X 10.10.2 (14C68m); not sure if there's any additional information I can provide.
Engineering has requested the following information in order to further investigate this issue:
We are unable to reproduce. Are you trying to input in text fields using mac dictation and not through keyboard.
No, I'm entering text normally with my MacBook Pro's built-in keyboard. The issue does also reproduce when using dictation.
I still see this issue here on Safari Version 10.0 (12602.1.50.0.8) on OS X Sierra beta.
The placeholder text vanishes if I use any cmd-shortcut, even e.g. cmd-C with no text selected.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!