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