Search and Top Navigation
#4782 open feature ()
Opened August 14, 2009 07:23PM UTC
Last modified October 24, 2012 07:44PM UTC
Selectable: Filtered items does not refresh
Reported by: | ungenio | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 2.0.0 |
Component: | ui.selectable | Version: | 1.7.2 |
Keywords: | filter selectees | Cc: | |
Blocked by: | Blocking: |
Description
I've created a selectable as follows:
$('ul.selectable').selectable({ filter: 'li:not(.ui-state-disabled)' });
If I add the "ui-state-disabled" class to one of the selectees at a later time, the selectee exhibits strange behavior, like being able to be selected but not unselected, rather than being filtered completely as expected.
To work around this, I've had to do something similar to the following:
$('ul.selectable li.ui-state-disabled').each(function(){ $.removeData(this, 'selectable-item'); $(this).removeClass('ui-selected ui-selectee'); });
I would think refresh ought to perform this on selectees that now match the filter expression.
Attachments (0)
Change History (4)
Changed November 17, 2009 02:32PM UTC by comment:1
milestone: | TBD → 1.8 |
---|
Changed June 26, 2012 01:22AM UTC by comment:2
type: | enhancement → feature |
---|
Changed October 11, 2012 02:52PM UTC by comment:3
milestone: | 1.9.0 → 2.0.0 |
---|
Changed October 24, 2012 07:44PM UTC by comment:4
status: | new → open |
---|---|
summary: | Filtered items does not refresh → Selectable: Filtered items does not refresh |
Test case: http://jsfiddle.net/petersendidit/V2Ynv/