mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 13:55:51 +03:00
[PR #927] [CLOSED] fix remove dropdown option index out of range #1078
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#1078
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rivo/tview/pull/927
Author: @7yyo
Created: 12/7/2023
Status: ❌ Closed
Base:
master← Head:drop_down_index_out_of_range📝 Commits (2)
5f2dcc8fix remove dropdown option index out of ranged27f9f4fix remove dropdown option index out of range📊 Changes
1 file changed (+7 additions, -2 deletions)
View changed files
📝
dropdown.go(+7 -2)📄 Description
@rivo
Hi, when setSelectFunc of dropdown to remove current option, if the last option is selected, index out of range will panic. I tried to fix this bug.
The code below will reproduce this bug if select the last option
Fifth.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.