Skip to main content

Search and Top Navigation

#2742 closed bug (notabug)

Opened April 25, 2008 12:10AM UTC

Closed April 30, 2008 10:09AM UTC

Last modified May 24, 2008 03:39AM UTC

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
Attachments (0)
Change History (2)

Changed April 30, 2008 10:09AM UTC by paul comment:1

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!

Changed May 24, 2008 03:39AM UTC by comment:2

milestone: 1.2.4

Milestone 1.2.4 deleted