Skip to content

Commit

Permalink
Fix TUI prompt always rendering as sensitive
Browse files Browse the repository at this point in the history
Closes #108
  • Loading branch information
LucasPickering committed Mar 15, 2024
1 parent 8063bd2 commit a83f7e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [Unreleased] - ReleaseDate

### Fixed

- Fix prompt in TUI always rendering as sensitive ([#108](https://github.com/LucasPickering/slumber/issues/108))

## [0.13.1] - 2024-03-07

### Changed
Expand Down
2 changes: 1 addition & 1 deletion src/tui/view/component/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ impl PromptModal {
let submit = Rc::new(Cell::new(false));
let submit_cell = Rc::clone(&submit);
let text_box = TextBox::default()
.with_sensitive(true)
.with_sensitive(prompt.sensitive())
// Make sure cancel gets propagated to close the modal
.with_on_cancel(|_, context| context.queue_event(Event::CloseModal))
.with_on_submit(move |_, context| {
Expand Down

0 comments on commit a83f7e7

Please sign in to comment.