Fix strict equals
This commit is contained in:
parent
f2c973096b
commit
75d2ef2cc1
|
@ -222,11 +222,11 @@ var usercss = (() => {
|
||||||
if (Array.isArray(state.value) && state.value.length) {
|
if (Array.isArray(state.value) && state.value.length) {
|
||||||
// label may be placed anywhere
|
// label may be placed anywhere
|
||||||
result.units = (state.value.find(i => typeof i === 'string') || '').replace(/[\d.+-]/g, '');
|
result.units = (state.value.find(i => typeof i === 'string') || '').replace(/[\d.+-]/g, '');
|
||||||
const range = state.value.filter(i => typeof i === 'number' || i == null);
|
const range = state.value.filter(i => typeof i === 'number' || i === null);
|
||||||
result.default = range[0];
|
result.default = range[0];
|
||||||
result.min = range[1];
|
result.min = range[1];
|
||||||
result.max = range[2];
|
result.max = range[2];
|
||||||
result.step = range[3] == 0 ? 1 : range[3];
|
result.step = range[3] === 0 ? 1 : range[3];
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user