Open Bug 376705 Opened 15 years ago Updated 7 years ago

datepicker doesn't accept empty value


(Toolkit :: XUL Widgets, defect)

Not set





(Reporter: zeus, Unassigned)


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; it; rv: Gecko/20070309 Firefox/
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
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.