Skip to main content

Search and Top Navigation

#5631 closed bug (duplicate)

Opened May 18, 2010 05:01PM UTC

Closed October 16, 2012 08:58PM UTC

Datepicker: Allows disabled input to trigger datepicker

Reported by: laurenty Owned by:
Priority: minor Milestone: 1.11.0
Component: ui.datepicker Version: 1.8.1
Keywords: Cc:
Blocked by: Blocking:
Description

The Datepicker constructor should check the "disabled" property of its target input control and set its own disabled state accordingly.

When a webpage is rendered with the following markup:

<input type="text" name="date" id="mydate" disabled="disabled">

The Datepicker should also be rendered disabled when running the following code.

$("#mydate").datepicker({
	showOn: 'button',
	buttonImage: 'images/calendar.gif',
	buttonImageOnly: true
});
Attachments (0)
Change History (3)

Changed June 01, 2011 10:43AM UTC by Emyr comment:1

This is a "feature":

http://bugs.jqueryui.com/ticket/4079

It allows users to be forced to use the datepicker, against usability principles.

I believe allowing the editing of disabled inputs using the datepicker should be an option, defaulting to false.

Changed October 11, 2012 09:04PM UTC by scottgonzalez comment:2

milestone: TBD1.11.0

Changed October 16, 2012 08:58PM UTC by petersendidit comment:3

resolution: → duplicate
status: newclosed
summary: Datepicker with disabled input controlsDatepicker: Allows disabled input to trigger datepicker

Duplicate of #4079.