dropdown ok
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user