Skip to content

Commit

Permalink
feat: Render the input placeholder even when its focused (#1106)
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 authored Feb 12, 2025
1 parent 6e25342 commit 8d0dd30
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/components/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,7 @@ pub fn Input(
let mut focus = use_focus();
let mut drag_origin = use_signal(|| None);

let is_focused = focus.is_focused();
let display_placeholder = value.is_empty() && placeholder.is_some() && !is_focused;
let display_placeholder = value.is_empty() && placeholder.is_some();

if &value != editable.editor().read().rope() {
editable.editor_mut().write().set(&value);
Expand Down

0 comments on commit 8d0dd30

Please sign in to comment.