Skip to main content

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 jzaefferer comment:1

milestone: TBD1.8

Changed June 26, 2012 01:22AM UTC by scottgonzalez comment:2

type: enhancementfeature

Changed October 11, 2012 02:52PM UTC by scottgonzalez comment:3

milestone: 1.9.02.0.0

Changed October 24, 2012 07:44PM UTC by petersendidit comment:4

status: newopen
summary: Filtered items does not refreshSelectable: Filtered items does not refresh