fix(ui): Selector initial attribute value
parent
59c34dba5e
commit
85d200fba6
|
@ -20,12 +20,13 @@
|
|||
export let placeholder = "";
|
||||
export let disabled = false;
|
||||
|
||||
let inputValue = "";
|
||||
if (type == "attribute") {
|
||||
inputValue = attribute || "";
|
||||
} else {
|
||||
inputValue = String(value?.c || "");
|
||||
value = {
|
||||
c: attribute,
|
||||
t: "String",
|
||||
};
|
||||
}
|
||||
let inputValue = String(value?.c || "");
|
||||
$: if (value === undefined) inputValue = undefined;
|
||||
|
||||
function onInput(ev: CustomEvent<string>) {
|
||||
|
|
Loading…
Reference in New Issue