mirror of
https://github.com/veeso/termscp.git
synced 2026-07-14 20:13:46 +02:00
Progress bar; use render_value for input
This commit is contained in:
@@ -176,7 +176,7 @@ impl Component for Input {
|
||||
Some(t) => t.clone(),
|
||||
None => String::new(),
|
||||
};
|
||||
let p: Paragraph = Paragraph::new(self.states.get_value())
|
||||
let p: Paragraph = Paragraph::new(self.states.render_value(self.props.input_type))
|
||||
.style(match self.states.focus {
|
||||
true => Style::default().fg(self.props.foreground),
|
||||
false => Style::default(),
|
||||
|
||||
Reference in New Issue
Block a user