Bug Tracker

Modify

Ticket #2742 (closed bug: invalid)

Opened 5 years ago

Last modified 5 years ago

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

comment:1 Changed 5 years 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!

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.