added explicit readonly and disabled props to MultipleValueInput
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
|
||||
export let value = [];
|
||||
export let separator = ",";
|
||||
export let readonly = null;
|
||||
export let disabled = null;
|
||||
|
||||
$: valueStr = (value || []).join(", ");
|
||||
</script>
|
||||
@@ -10,6 +12,8 @@
|
||||
<input
|
||||
type={$$restProps.type || "text"}
|
||||
value={valueStr}
|
||||
{disabled}
|
||||
{readonly}
|
||||
on:input={(e) => {
|
||||
value = CommonHelper.splitNonEmpty(e.target.value, separator);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user