fixed more dropdown menu

This commit is contained in:
filipriec
2025-04-12 18:06:19 +02:00
parent d2bb7a0bf4
commit 741cc952fa
2 changed files with 13 additions and 11 deletions

View File

@@ -21,7 +21,7 @@ pub fn render_canvas(
inputs: &[&String],
theme: &Theme,
is_edit_mode: bool,
) {
) -> Option<Rect> {
// Split area into columns
let columns = Layout::default()
.direction(Direction::Horizontal)
@@ -95,13 +95,5 @@ pub fn render_canvas(
}
}
// --- Render Autocomplete Dropdown (if applicable) ---
if let Some(suggestions) = form_state.get_suggestions() {
let selected = form_state.get_selected_suggestion_index();
if !suggestions.is_empty() {
if let Some(input_rect) = active_field_input_rect {
autocomplete::render_autocomplete_dropdown(f, input_rect, f.size(), theme, suggestions, selected);
}
}
}
active_field_input_rect
}