Closed Celedhrim closed 7 years ago
Hi,
Thanks for using the library.
You have found a case where pagination doesn't work, which is when choices are provided as hash object rather than array. This is a bug, in the interim you could do the following:
prompt.select("Choose your letter?", per_page: 2) do |menu|
menu.choice 'Scorpion', 1
menu.choice 'Kano', 2
menu.choice 'Jax', 3
end
hi
tty-prompt 0.11.0
produce this output:
Now I set per_page
the per_page can be 2 , 10 , 25 , always same result
Only one entry is display and baddly