mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-05-06 17:21:13 +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:
parent
8b79b3af99
commit
b8a81bae9e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user