By default, the module returns an error message when user selects more than the maximum number of values (based on the field settings). The behavior makes sense for multiple values but not so much for single selection (it's awkward to uncheck just one value before selection).

Instead of saying "Please select no more than 1 values", it should just replace the old value with the new one. E.g. mimic the file selection behavior.

I've included a patch for review.

Comments

abrlam’s picture

abrlam’s picture

minor correction

seycom’s picture

#2 works great for me, thank you!

TheMGamer’s picture

#2 works for me also! Thank you

  • jsacksick committed f07eba9 on 7.x-2.x authored by abrlam
    Issue #2392609 by abrlam, jsacksick: Better single selection behavior.
    
jsacksick’s picture

Status: Needs review » Fixed

Thanks for the patch, I removed extra whitespaces and I committed a slightly different patch!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.