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: |
Description
Hello,
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.
Regards,
Markus
Attachments (0)
Change History (3)
Changed October 11, 2012 02:43PM UTC by comment:1
milestone: | 1.9.0 → 1.11.0 |
---|
Changed October 19, 2012 07:06PM UTC by comment:2
status: | new → open |
---|
confirmed on latest: http://jsfiddle.net/UmbpL/
Changed June 24, 2014 11:49PM UTC by comment:3
resolution: | → patcheswelcome |
---|---|
status: | open → closed |
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.