mjl- / duit

pure go, cross-platform, MIT-licensed ui toolkit for developers
MIT License
951 stars 38 forks source link

prevent de-selection of items in single-select lists #16

Open neutralinsomniac opened 4 years ago

neutralinsomniac commented 4 years ago

I'm not sure if this behavior is intentional, so forgive me if it is, but clicking on an already-selected item in the List ui (for a non-multiple-select List) causes it to de-select, which doesn't feel normal to me. This change causes already-selected items to stay selected when clicked.