mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-28 16:29:34 +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.
|
// Placeholder.
|
||||||
if (content.size() == 0) {
|
if (content.size() == 0) {
|
||||||
if (is_focused)
|
if (is_focused)
|
||||||
return text(placeholder) | dim | inverted | main_decorator;
|
return text(placeholder) | focus | dim | inverted | main_decorator;
|
||||||
else
|
else
|
||||||
return text(placeholder) | dim | main_decorator;
|
return text(placeholder) | dim | main_decorator;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user