Skip to content

Commit

Permalink
fix(range-input): innerValue is null
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 committed Sep 26, 2024
1 parent 8368ab9 commit bd16dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/range-input/range-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default defineComponent({
const placeholder = computed(() => calcArrayValue(props.placeholder));
const [innerValue, setInnerValue] = useVModel(value, modelValue, props.defaultValue, props.onChange);

const inputValue = computed(() => String((innerValue.value[0] || innerValue.value[1]) ?? ''));
const inputValue = computed(() => String((innerValue.value?.[0] || innerValue.value?.[1]) ?? ''));

const isShowClearIcon = computed(
() =>
Expand Down

0 comments on commit bd16dbc

Please sign in to comment.