mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-18 00:48:09 +08:00
Add focus element in input component while the placeholder is displayed.
This should fix: https://github.com/ArthurSonzogni/FTXUI/issues/2
This commit is contained in:
@@ -12,7 +12,7 @@ Element Input::Render() {
|
||||
// Placeholder.
|
||||
if (content.size() == 0) {
|
||||
if (is_focused)
|
||||
return text(placeholder) | dim | inverted | main_decorator;
|
||||
return text(placeholder) | focus | dim | inverted | main_decorator;
|
||||
else
|
||||
return text(placeholder) | dim | main_decorator;
|
||||
}
|
||||
|
Reference in New Issue
Block a user