Changing value to val in handleChange
This commit is contained in:
parent
81d493e0c1
commit
dccb05d509
|
@ -10,7 +10,7 @@
|
||||||
export let onChange = () => {}
|
export let onChange = () => {}
|
||||||
|
|
||||||
function handleChange(val, idx) {
|
function handleChange(val, idx) {
|
||||||
value.splice(idx, 1, val !== "auto" ? value + suffix : val)
|
value.splice(idx, 1, val !== "auto" ? val + suffix : val)
|
||||||
|
|
||||||
value = value
|
value = value
|
||||||
let _value = value.map(v => (!v.endsWith(suffix) && v !== "auto" ? v + suffix : v))
|
let _value = value.map(v => (!v.endsWith(suffix) && v !== "auto" ? v + suffix : v))
|
||||||
|
|
Loading…
Reference in New Issue