Update new functions
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// components/Rating.js
|
||||
import { $html } from "../sigpro.js";
|
||||
import { Tag } from "../sigpro.js";
|
||||
import { val, ui } from "../core/utils.js";
|
||||
|
||||
/**
|
||||
@@ -15,7 +15,7 @@ export const Rating = (props) => {
|
||||
|
||||
const ratingGroup = `rating-${Math.random().toString(36).slice(2, 7)}`;
|
||||
|
||||
return $html(
|
||||
return Tag(
|
||||
"div",
|
||||
{
|
||||
...rest,
|
||||
@@ -23,7 +23,7 @@ export const Rating = (props) => {
|
||||
},
|
||||
Array.from({ length: val(count) }, (_, i) => {
|
||||
const starValue = i + 1;
|
||||
return $html("input", {
|
||||
return Tag("input", {
|
||||
type: "radio",
|
||||
name: ratingGroup,
|
||||
class: `mask ${mask}`,
|
||||
|
||||
Reference in New Issue
Block a user