jQuery: The Write Less, Do More JavaScript Library

Ticket #2742 (closed bug: invalid)

Opened 3 months ago

Last modified 3 months ago

dragging with cancel options throws error

Reported by: cmvonner Assigned to: paul
Type: bug Priority: major
Milestone: 1.2.4 Component: ui
Version: 1.2.3 Keywords:
Cc: Needs: Review

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

Change History

Changed 3 months ago by paul

  • status changed from new to closed
  • resolution set to invalid

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

Note: See TracTickets for help on using tickets.