Modify ↓
Ticket #2742 (closed bug: invalid)
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: | ||
| Blocking: | Blocked by: |
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
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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