mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
fix(autocomplete): hide embedding preview tooltip after selection
Remove searchType check from prompt behavior's hidePreview method. When an embedding was selected, the input event dispatched by insertSelection caused searchType to change before hide() was called, preventing the preview tooltip from being hidden. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -210,7 +210,7 @@ const MODEL_BEHAVIORS = {
|
||||
instance.showPreviewForItem(relativePath, itemElement);
|
||||
},
|
||||
hidePreview(instance) {
|
||||
if (!instance.previewTooltip || instance.searchType !== 'embeddings') {
|
||||
if (!instance.previewTooltip) {
|
||||
return;
|
||||
}
|
||||
instance.previewTooltip.hide();
|
||||
|
||||
Reference in New Issue
Block a user