Changing value to val in handleChange

This commit is contained in:
Conor_Mack 2020-06-02 15:26:03 +01:00
parent 81d493e0c1
commit dccb05d509
1 changed files with 1 additions and 1 deletions

View File

@ -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))