Emulate a select widget when maxLength is set to 1