Open Bug 376705 Opened 15 years ago Updated 7 years ago

datepicker doesn't accept empty value

Categories

(Toolkit :: XUL Widgets, defect)

defect
Not set
normal

Tracking

()

UNCONFIRMED

People

(Reporter: zeus, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; it; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3
Build Identifier: 1.9a3

if I assign a null value to a xul:datepicker it throw an exception; 
if the application needs an optional date field datepicker can't be used (or at last I can't find a way to do so...)

Reproducible: Always

Steps to Reproduce:
1.create a xul_datepicker 
2.tray to assign a empty/null value
3.
Actual Results:  
it throw an exception

Expected Results:  
the control became blank (showing something like "  /  /    ")
I have the same problem with my application here. So I created an binding that extends the datepicker and allows empty values... but it is very hackish due to some issues with inheritance in xbl bindings.

If there is someone who needs it just contact me.
Bug 456024 contains a new datepicker widget (in progress) that removes the year and allows blank values.
You need to log in before you can comment on or make changes to this bug.