(no title)
alex7734 | 1 year ago
on_click() {
if (last_one()) alert('You must keep at least one item selected.');
else actually_toggle_it_off();
}
Simple. Does not need fancy code. User immediately knows what he has to do, with no thinking required.
andrewla|1 year ago
As much as possible you should stay out of the users way and let them decide how to interact.