Opened 7 years ago

Closed 6 years ago

#16424 closed enhancement (fixed)

display placeholder value if form-widget is empty

Reported by: gerhard presser Owned by: Douglas Hays
Priority: undecided Milestone: 1.9
Component: Dijit - Form Version: 1.8.1
Keywords: Cc: liucougar
Blocked By: Blocking:

Description

as defined in the HTML5 spec

http://dev.w3.org/html5/spec/single-page.html#the-placeholder-attribute

the placeholder attribute may/should be visible even if the widget is focused - if there's still no value.

see also: http://stackoverflow.com/questions/8574356/html5-placeholder-disappears-on-focus

Change History (3)

comment:1 Changed 7 years ago by bill

Cc: liucougar added

I can't remember why we didn't do it that way originally. The spec does seem to say to show the hint until the user starts typing, and I can see the benefit of that.

comment:2 Changed 6 years ago by Douglas Hays

Milestone: tbd1.9

comment:3 Changed 6 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

In [30597]:

Fixes #16424. CHeck to see if the textbox value is nonempty before removing the placeHolder.

Note: See TracTickets for help on using tickets.