Search and Top Navigation
#7668 closed enhancement (wontfix)
Opened August 26, 2011 08:07AM UTC
Closed August 29, 2011 05:03PM UTC
Last modified January 29, 2015 09:51PM UTC
Docs: Add note regarding the cancel option of sortable
Reported by: | lessan | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | [meta] ui.docs | Version: | 1.8.15 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When setting the cancel
option for sortable
, it overrides the default built-in cancel selector.
For example, if you set this:
$( ".selector" ).sortable({ cancel: 'button' });
Then any text boxes in the affected area will no longer cancel drag. See this blog post regarding the same issue: http://weblogs.asp.net/jeffwids/archive/2011/01/31/jquery-textbox-in-sortable-is-not-clickable-selectable.aspx
Could you please add a note to the docs (http://jqueryui.com/demos/sortable/#option-cancel) stating this? For example:
Note: setting this option overrides the default of ':input,button'.
Attachments (0)
Change History (3)
Changed August 29, 2011 05:03PM UTC by comment:1
resolution: | → wontfix |
---|---|
status: | new → closed |
Changed August 31, 2011 07:01AM UTC by comment:2
I just realized that the default values are shown on the page (in a very obvious place too, facepalm!).
Sorry for the ticket, you're absolutely right there's no point adding a note stating the obvious.
Changed January 29, 2015 09:51PM UTC by comment:3
_comment0: | What's not so obvious is that cancelling drag will also prevent any clicks in a text input field or select element. It really would help to add this as a little note to the documentation. \ \ "Prevents sorting" is really something different from "Prevent working" \ \ sfiddle.net/cv5ar8g6/1/ \ → 1422568352986587 |
---|
What's not so obvious is that cancelling drag will also prevent any clicks in a text input field or select element. It really would help to add this as a little note to the documentation.
"Prevents sorting" is really something different from "Prevent working"
It doesn't make sense to make a note about what the word default means for a single option. All options have defaults and explicitly setting the option always overrides the default.