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: |
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
Hi, this is actually a mistake in the documentation. The cancel option expects a string, i.e. "input,textarea,button". Sorry for the inconvienience!