Import individual
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 4s
All checks were successful
Deploy Docs to Synology / deploy (push) Successful in 4s
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
// components/Autocomplete.js
|
||||
// import { $, Tag, For } from "../sigpro.js";
|
||||
import { $, Tag, For } from "sigpro";
|
||||
import { val } from "../core/utils.js";
|
||||
import { tt } from "../core/i18n.js";
|
||||
import { Input } from "./Input.js";
|
||||
|
||||
/**
|
||||
@@ -69,7 +68,7 @@ export const Autocomplete = (props) => {
|
||||
Input({
|
||||
label,
|
||||
class: className,
|
||||
placeholder: placeholder || tt("search")(),
|
||||
placeholder: placeholder,
|
||||
value: query, // Vinculado a la señal query
|
||||
onfocus: () => isOpen(true),
|
||||
onblur: () => setTimeout(() => isOpen(false), 150),
|
||||
@@ -108,7 +107,7 @@ export const Autocomplete = (props) => {
|
||||
(opt, i) => (typeof opt === "string" ? opt : opt.value) + i,
|
||||
),
|
||||
// Mensaje de "no hay datos" reactivo
|
||||
() => (list().length ? null : Tag("li", { class: "p-2 text-center opacity-50" }, tt("nodata")())),
|
||||
() => (list().length ? null : Tag("li", { class: "p-2 text-center opacity-50" }, "nodata")),
|
||||
],
|
||||
),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user