Fix: DragValue correctly reports gained_focus
This commit is contained in:
parent
989a6d202f
commit
0d21405855
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ impl<'a> Widget for DragValue<'a> {
|
|||
emath::format_with_decimals_in_range(value, auto_decimals..=max_decimals)
|
||||
};
|
||||
|
||||
let kb_edit_id = ui.auto_id_with("edit");
|
||||
let kb_edit_id = ui.next_auto_id();
|
||||
let is_kb_editing = ui.memory().has_focus(kb_edit_id);
|
||||
|
||||
let mut response = if is_kb_editing {
|
||||
|
|
Loading…
Reference in a new issue