change utils location
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,6 +1,6 @@
|
||||
// components/Swap.js
|
||||
import { Tag } from "sigpro";
|
||||
import { ui, val } from "../core/utils.js";
|
||||
import { ui, val } from "../utils.js";
|
||||
|
||||
/**
|
||||
* Swap component
|
||||
@@ -15,7 +15,7 @@ export const Swap = (props) => {
|
||||
return Tag("label", { ...rest, class: ui('swap', className) }, [
|
||||
Tag("input", {
|
||||
type: "checkbox",
|
||||
checked: () => val(value), // ← FUNCIÓN: se reevalúa cuando la señal cambia
|
||||
checked: () => val(value),
|
||||
onclick: (e) => {
|
||||
if (typeof value === "function") {
|
||||
value(e.target.checked);
|
||||
|
||||
Reference in New Issue
Block a user