Opened 12 years ago

Closed 9 years ago

#7589 closed bug (patcheswelcome)

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.

http://jsfiddle.net/TATAL/

  1. Try to input some chars into the input: not working (correct!)
  2. 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

Change History (3)

comment:1 Changed 11 years ago by Scott González

Milestone: 1.9.01.11.0

comment:2 Changed 11 years ago by mikesherov

Status: newopen

confirmed on latest: http://jsfiddle.net/UmbpL/

comment:3 Changed 9 years ago by Scott González

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.

Note: See TracTickets for help on using tickets.