Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#2742 closed bug (notabug)

dragging with cancel options throws error

Reported by: cmvonner Owned by: paul
Priority: major Milestone:
Component: ui.core Version: 1.2.3
Keywords: Cc:
Blocked by: Blocking:


When attempting to use the "cancel" option with ui.draggable.js (version 2008-04-17), I consistently get an error.

Sample code:

$("#mydiv").draggable({cancel: ['input','textarea','button','select','option','img']});

Error message:

o.cancel.toLowerCase is not a function
Line 61

Change History (2)

comment:1 Changed 15 years ago by paul

Resolution: invalid
Status: newclosed

Hi, this is actually a mistake in the documentation. The cancel option expects a string, i.e. "input,textarea,button". Sorry for the inconvienience!

comment:2 Changed 15 years ago by (none)

Milestone: 1.2.4

Milestone 1.2.4 deleted

Note: See TracTickets for help on using tickets.