mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[GH-ISSUE #1131] Issues With Form Navigation And Disabled Inputs #818
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#818
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?
Originally created by @bn-bmagee on GitHub (Nov 3, 2025).
Original GitHub issue: https://github.com/rivo/tview/issues/1131
I am making a number of very similar forms so I'm trying to avoid duplicating code and one of the things I'm doing is disabling a number of form inputs after form submission. Unfortunately it seems that if you disable the input that's currently selected navigation from that input breaks. In order to address this it would be nice to be able to identify an enabled input in the form that I can focus, but that doesn't seem to be possible, so I would like it if you could add an
IsEnabled() boolfunction to FormItems and Buttons. I also noticed that shift+tab doesn't seem to work if the previous input is disabled, where I would expect focus to skip items until it reaches an enabled input like it does when you press tab.Edit: I see that Button actually does have an IsDisabled function; I think that should be added to FormItem's interface.