[GH-ISSUE #1131] Issues With Form Navigation And Disabled Inputs #818

Open
opened 2026-03-04 01:07:57 +03:00 by kerem · 0 comments
Owner

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() bool function 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.

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() bool` function 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#818
No description provided.