Merge pull request #9 from anoshenko/bug-fixes/list-checked-items

This commit is contained in:
Alexei Anoshenko 2025-05-22 11:45:54 +03:00 committed by GitHub
commit 81e826adf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1115,7 +1115,7 @@ func GetListViewCheckedItems(view View, subviewID ...string) []int {
return checkedItems
case SingleCheckbox:
if len(checkedItems) > 1 {
if len(checkedItems) > 0 {
return []int{checkedItems[0]}
}
}