by alex7734 · 2y ago · 0 comments
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.As much as possible you should stay out of the users way and let them decide how to interact.