autocomplete now autocompleting data not just id
This commit is contained in:
@@ -140,12 +140,12 @@ pub fn render_rich_autocomplete_dropdown(
|
||||
|
||||
let display_part = values.first().cloned().unwrap_or_default(); // Get the first value
|
||||
if display_part.is_empty() {
|
||||
format!("ID: {}", hit.id)
|
||||
format!("{}", hit.id)
|
||||
} else {
|
||||
format!("{} | ID: {}", display_part, hit.id) // ID at the end
|
||||
format!("{} | {}", display_part, hit.id) // ID at the end
|
||||
}
|
||||
} else {
|
||||
format!("ID: {} (parse error)", hit.id)
|
||||
format!("{} (parse error)", hit.id)
|
||||
}
|
||||
})
|
||||
.collect();
|
||||
|
||||
Reference in New Issue
Block a user