dropdown ok

This commit is contained in:
2026-04-02 21:40:07 +02:00
parent f0c710f8c2
commit b0629ef3d0
6 changed files with 301 additions and 323 deletions

View File

@@ -12,7 +12,6 @@ import { ui } from "../core/utils.js";
export const Drawer = (props, children) => {
const { class: className, id, open, side, content, ...rest } = props;
// Generar un id único si no se proporciona
const drawerId = id || `drawer-${Math.random().toString(36).slice(2, 9)}`;
return $html("div", {
@@ -32,7 +31,6 @@ export const Drawer = (props, children) => {
typeof content === "function" ? content() : content
]),
$html("div", { class: "drawer-side" }, [
// El overlay debe tener for apuntando al checkbox
$html("label", {
for: drawerId,
class: "drawer-overlay",