Add tests and disable selection on invalid items

This commit is contained in:
Dean Herbert
2021-11-16 17:08:21 +09:00
parent 6f82e6351f
commit 2d125893fc
3 changed files with 55 additions and 12 deletions

View File

@ -281,7 +281,7 @@ namespace osu.Game.Screens.OnlinePlay
protected override bool OnClick(ClickEvent e)
{
if (allowSelection)
if (allowSelection && valid.Value)
SelectedItem.Value = Model;
return true;
}