Skip to main content

Search and Top Navigation

#7589 closed bug (patcheswelcome)

Opened August 01, 2011 09:42AM UTC

Closed June 24, 2014 11:49PM UTC

Datpicker constrainInput does not prevent pasting wrong format

Reported by: doits Owned by:
Priority: minor Milestone: 1.11.0
Component: ui.datepicker Version: 1.8.14
Keywords: Cc:
Blocked by: Blocking:


even though constrainInput is set to true, I can paste wrong formatted input into a Datepicker-input.

1. Try to input some chars into the input: not working (correct!)

1. Copy any wrong formatted text and paste (by shortcut or right click context menu) it into the input: working! (should not, I think!)

If pasting cannot be prevented, the input should at least be cleared when leaving the input element.

Tested with Firefox 6b1, Chrome 12, Safari 5.1 on OS X 10.7.



Attachments (0)
Change History (3)

Changed October 11, 2012 02:43PM UTC by scottgonzalez comment:1


Changed October 19, 2012 07:06PM UTC by mikesherov comment:2

status: newopen

confirmed on latest:

Changed June 24, 2014 11:49PM UTC by scottgonzalez comment:3

resolution: → patcheswelcome
status: openclosed

The constrainInput option will be removed during the rewrite. We can review a PR against the current implementation if someone wants to work on that.