diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b6e81f6..c4c79e43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/tui/view/component/misc.rs b/src/tui/view/component/misc.rs index 5021421b..b01aa517 100644 --- a/src/tui/view/component/misc.rs +++ b/src/tui/view/component/misc.rs @@ -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| {