Skip to main content

Bug Tracker

Side navigation

#2742 closed bug (invalid)

Opened April 25, 2008 12:10AM UTC

Closed April 30, 2008 10:09AM UTC

dragging with cancel options throws error

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

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
http://esgtracking/application_resources/jQuery/ui.draggable.js
Line 61
Attachments (0)
Change History (1)

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!