8

On the "Ask Question" page, the Title input box initially contains "What's your programming question? Be descriptive." in grey text. Typing text erases the prompt and displays what you type in black text.

However, pasting text into the input box doesn't trigger the erase, inserts the pasted text into the prompt, leaves the text grey, and typing any further text doesn't trigger the erase either.

The same thing happens on other input boxes that contain initial grey prompts.

Browser: IE 7.0.5730.13

Update: This appears to be an IE-specific problem. I wasn't able to repro it in Firefox or Safari.

4
  • It's probably a keyup event.
    – random
    Commented Jan 27, 2010 at 2:46
  • Duplicate of meta.stackexchange.com/questions/36872/…
    – perbert
    Commented Jan 27, 2010 at 2:49
  • 1
    Not a duplicate, that question doesn't say anything about paste, which is where the bug happens. Commented Jan 27, 2010 at 3:02
  • ah, IE only issues continue to impress. :)
    – Troggy
    Commented Jan 27, 2010 at 6:28

2 Answers 2

1

Feel free to upvote this so the community user will stop bumping the question.

3
  • The community user is supposed to keep bumping the question ("This is by design") because the question hasn't yet received an answer considered helpful. :-) Commented Nov 27, 2010 at 20:08
  • @Shree Because it's been [status-completed], this type of post is typical procedure here on Meta.
    – waiwai933
    Commented Nov 27, 2010 at 20:12
  • Oh I see... I didn't notice the tag, and the answers and comments didn't give that impression. Commented Nov 27, 2010 at 21:57
0

This is by design -- the help text disappears when you begin typing.

The title field had to be handled a bit differently because it typically has focus when the page loads.

I think this might actually be a behavior we want to extend to the tags field, since the help text disappearing on focus is not exactly helpful when you, y'know, need help entering text on that field.. the one you just tabbed into.

Jeff Atwood♦

2
  • Yes, the field works correctly when typing. The difference is pasting text, where it doesn't work correctly. Commented Jan 27, 2010 at 3:02
  • 2
    @Greg, don't argue with me, argue with The Big Cheese ♦ himself.
    – perbert
    Commented Jan 27, 2010 at 3:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .