render cursor even when there is no content so the user knows when they have focus in the element

This commit is contained in:
temportalflux
2026-07-11 09:31:07 -04:00
parent 7caea04bf6
commit a6aebd6ae4
@@ -391,7 +391,7 @@ pub trait EditableTextElement: InteractiveElement + EditableInputActionElement {
}
let is_focused = focus_handle.is_focused(window);
if !state.layout_data.lines_represent_placeholder && is_focused && cursor_visible {
if is_focused && cursor_visible {
const CURSOR_WIDTH: f32 = 2.0;
let quad = fill(
Bounds::new(