jQuery UI 1.6rc6 - Selectables default behaviour
Using the demo at http://jqueryui.com/demos/selectable/#display-grid
as an example, I have a question regarding the behaviour of
selectables.
When I click on (or drag over) an unselected element it is selected.
So I would expect that doing the same action on a selected element it
will be deselected. In this way, if I select multiple elements and
realise that the one in the middle is not what I wanted I can click on
it and deselect it. Likewise, if I have a large list of items and I
want to select all but a few, I can select those few first and then
select them all (which would deselect the few previously selected
elements).
I find this kind of behaviour more intuitive and more practical. What
do you guys think?
P.S. I looked in the options for something that would turn this
behaviour on/off but no luck. I also tried returning false in the
selecting function if an item was already selected but still no luck
(jquery tends to spoil me and I take many things for granted). So I
looked into the source and changed a few lines here and there and it
seems to be doing what I described (i.e. its not that hard to
implement).