You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If you create e.g. a NewMultiSelect with a lot of items than it happens that some items are not visible (depending on the terminal hright
To Reproduce
Steps to reproduce the behavior:
package main
import (
"strconv"
"github.com/charmbracelet/huh"
)
func main() {
result := []string{}
list := []huh.Option[string]{}
for i := 0; i < 30; i++ {
item := "item-" + strconv.Itoa(i)
list = append(list, huh.NewOption(item, item))
}
sel := huh.NewMultiSelect[string]().Options(list...).Value(&result)
form := huh.NewForm(
huh.NewGroup(sel).Description("Long List"),
)
err := form.Run()
if err != nil {
panic(err)
}
}
Run in a terminal which can show less then 30 lines.
Expected behavior
List should be scrollable
Screenshots
Desktop (please complete the following information):
OSX, verson: v0.2.1
The text was updated successfully, but these errors were encountered:
Describe the bug
If you create e.g. a NewMultiSelect with a lot of items than it happens that some items are not visible (depending on the terminal hright
To Reproduce
Steps to reproduce the behavior:
Run in a terminal which can show less then 30 lines.
Expected behavior
List should be scrollable
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: